Bläddra i källkod

更改智能表单定时任务名称

boweniac 1 dag sedan
förälder
incheckning
fc3debbfba
1 ändrade filer med 6 tillägg och 6 borttagningar
  1. 6 6
      crontask/init.go

+ 6 - 6
crontask/init.go

@@ -49,16 +49,16 @@ func ScheduleRun(c *cron.Cron, serverCtx *svc.ServiceContext) {
 	//	syncWx.syncWx()
 	//})
 
-	//contactForm := NewCronTask(context.Background(), serverCtx)
-	//c.AddFunc("1 0 * * *", func() {
-	//	contactForm.analyze()
-	//})
-
 	contactForm := NewCronTask(context.Background(), serverCtx)
-	c.AddFunc("@every 10m", func() {
+	c.AddFunc("1 0 * * *", func() {
 		contactForm.analyze()
 	})
 
+	//contactForm := NewCronTask(context.Background(), serverCtx)
+	//c.AddFunc("@every 60m", func() {
+	//	contactForm.analyze()
+	//})
+
 	//l = NewCronTask(context.Background(), serverCtx)
 	//c.AddFunc("* * * * *", func() {
 	//	MaxWorker := 10