瀏覽代碼

修改日期

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

+ 3 - 3
services/data_source_longzhong.go

@@ -355,8 +355,8 @@ func GetHistoryLzProductDetail() (err error) {
 
 	for ik, iv := range infoList {
 		fmt.Println(ik, iv.SecName)
-		startDate := "2018-01-01" //time.Now().AddDate(0, 0, 0).Format(utils.FormatDate)
-		endDate := "2018-12-31"   //time.Now().AddDate(0, 0, 0).Format(utils.FormatDate)
+		startDate := "2019-01-01" //time.Now().AddDate(0, 0, 0).Format(utils.FormatDate)
+		endDate := "2019-12-31"   //time.Now().AddDate(0, 0, 0).Format(utils.FormatDate)
 		time.Sleep(5 * time.Second)
 		pageSize := 30
 
@@ -467,7 +467,7 @@ func GetHistoryLzProductDetail() (err error) {
 			if resp.Pagesize < pageSize || len(resp.Data) == 0 {
 				break
 			}
-			time.Sleep(2 * time.Second)
+			time.Sleep(1 * time.Second)
 		}
 		err = models.ModifyLongzhonginfoIsNormal(iv.LongzhonginfoId)
 		if err != nil {