|
@@ -728,8 +728,8 @@ func GetLzProductPriceData() (err error) {
|
|
|
}
|
|
|
username := "hzmd"
|
|
|
password := "HZMD2020"
|
|
|
- startDate := time.Now().AddDate(0, 0, -1).Format(utils.FormatDate)
|
|
|
- endDate := time.Now().AddDate(0, 0, 0).Format(utils.FormatDate)
|
|
|
+ startDate := "2017-01-01"//time.Now().AddDate(0, 0, -1).Format(utils.FormatDate)
|
|
|
+ endDate := "2017-12-31"//time.Now().AddDate(0, 0, 0).Format(utils.FormatDate)
|
|
|
for k, v := range priceInfoList {
|
|
|
fmt.Println(k, v)
|
|
|
getUrl := `https://openapi.oilchem.net/price/getPrice?password=` + password + `&type=` + v.InfoType + `&username=` + username + `&inStartDate=` + startDate + `&inEndDate=` + endDate + `&id=` + v.PriceId
|