liuxiaolong
2020-06-19 5df344667773da880d521ef45a4ca497af355d05
controllers/restriction.go
@@ -42,7 +42,7 @@
func Schedule() {
   c := cron.New()
   //每天凌晨5点执行一次,获取当日数据
   c.AddFunc("0 0 5 * * ?", func() {
   c.AddFunc("0 0 1 * * ?", func() {
      todayRes = nil
      getRestrictionInfo()
   })