Przeglądaj źródła

调整定时任务执行时间

boweniac 1 dzień temu
rodzic
commit
e4e556af1b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      crontask/init.go

+ 1 - 1
crontask/init.go

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