Browse Source

调整定时任务时间

boweniac 18 hours ago
parent
commit
5aa09d5bb9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      crontask/init.go

+ 1 - 1
crontask/init.go

@@ -50,7 +50,7 @@ func ScheduleRun(c *cron.Cron, serverCtx *svc.ServiceContext) {
 	//})
 
 	contactForm := NewCronTask(context.Background(), serverCtx)
-	c.AddFunc("1 0 * * *", func() {
+	c.AddFunc("0 0 * * *", func() {
 		contactForm.analyze()
 	})