Forráskód Böngészése

定时任务测试

baishaojie 4 napja
szülő
commit
16604843d9
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      conf/app-test.ini
  2. 1 1
      http/handle/api/scheduled.go

+ 1 - 1
conf/app-test.ini

@@ -77,7 +77,7 @@ Password = root
 #Name = tmrgo
 #Password = kepaiteng!QAZ
 #Host = 222.73.129.15:31306
-Name = bmsm1
+Name = tn
 TablePrefix =
 
 ShowXormlog = false

+ 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 15 * * *", func() {
+	c.AddFunc("30 16 * * *", func() {
 		fmt.Println(time.Now(),"testtesttesttesttesttesttesttest")
 		// tx := restful.Engine.NewSession()
 		// defer tx.Close()