瀏覽代碼

修改定时器

rdluck 4 年之前
父節點
當前提交
583e9771ac
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      services/data_source_longzhong.go
  2. 2 2
      services/task.go

+ 1 - 1
services/data_source_longzhong.go

@@ -227,7 +227,7 @@ func GetLzProductDetail()(err error) {
 		}
 	}()
 
-	startDate := time.Now().AddDate(0, 0, -2).Format(utils.FormatDate)
+	startDate := time.Now().AddDate(0, 0, 0).Format(utils.FormatDate)
 	endDate := time.Now().AddDate(0, 0, 0).Format(utils.FormatDate)
 	time.Sleep(5 * time.Second)
 	pageSize := 30

+ 2 - 2
services/task.go

@@ -15,10 +15,10 @@ func Task() {
 	toolbox.AddTask("oneMinute", oneMinute)
 
 	//隆众指标获取
-	getLzProductList := toolbox.NewTask("getLzProductList", "0 0 12,17 * * * ", GetLzProductList)
+	getLzProductList := toolbox.NewTask("getLzProductList", "0 0 11-19/1 * * * ", GetLzProductList)
 	toolbox.AddTask("getLzProductList", getLzProductList)
 	//隆众指标数据获取
-	getLzProductDetail := toolbox.NewTask("getLzProductDetail", "0 5 12,17 * * * ", GetLzProductDetail)
+	getLzProductDetail := toolbox.NewTask("getLzProductDetail", "0 5 11-19/1 * * * ", GetLzProductDetail)
 	toolbox.AddTask("getLzProductDetail", getLzProductDetail)
 
 	toolbox.StartTask()