rdluck 4 years ago
parent
commit
c0c96489b1
2 changed files with 3 additions and 3 deletions
  1. 2 2
      services/data_source_longzhong.go
  2. 1 1
      services/task.go

+ 2 - 2
services/data_source_longzhong.go

@@ -227,8 +227,8 @@ func GetLzProductDetail() (err error) {
 		}
 	}()
 
-	startDate := time.Now().AddDate(0, 0, 0).Format(utils.FormatDate)
-	endDate := time.Now().AddDate(0, 0, 0).Format(utils.FormatDate)
+	startDate := "2020-09-01"//time.Now().AddDate(0, 0, 0).Format(utils.FormatDate)
+	endDate := "2020-09-04"//time.Now().AddDate(0, 0, 0).Format(utils.FormatDate)
 	time.Sleep(5 * time.Second)
 	pageSize := 30
 

+ 1 - 1
services/task.go

@@ -32,7 +32,7 @@ func Taskabc() {
 
 func Task() {
 	fmt.Print("start")
-	LzExportExcel()
+	GetLzProductDetail()
 	fmt.Print("end")
 }