Explorar el Código

定时任务测试

baishaojie hace 17 horas
padre
commit
6b4d2aebea
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      http/handle/api/scheduled.go

+ 1 - 1
http/handle/api/scheduled.go

@@ -1096,7 +1096,7 @@ func processAnalysisEarlyWarning(target []string, pastureId string, serviceId in
 
 func manualUdData(pastureinfo *udPastureInfo) {
 	c := cron.New()
-	c.AddFunc("30 16 * * *", func() {
+	c.AddFunc("30 07 * * *", func() {
 		// fmt.Println(time.Now(),"testtesttesttesttesttesttesttest")
 		tx := restful.Engine.NewSession()
 		defer tx.Close()