rdluck 4 жил өмнө
parent
commit
071804e8dc

+ 1 - 1
services/data_source_longzhong.go

@@ -720,7 +720,7 @@ func GetLzProductPriceData() (err error) {
 	password := "HZMD2020"
 	for k, v := range priceInfoList {
 		fmt.Println(k, v)
-		getUrl := `https://openapi.oilchem.net/price/getPrice?password=` + password + `&type=` + v.PriceId + `&username=` + username + `&inStartDate=2020-08-01&inEndDate=2020-08-07`
+		getUrl := `https://openapi.oilchem.net/price/getPrice?password=` + password + `&type=` + v.InfoType + `&username=` + username + `&inStartDate=2020-08-01&inEndDate=2020-08-07&id=`+v.PriceId
 		body, err := http.Get(getUrl)
 		if err != nil {
 			msg = "获取隆众价格数据失败:Err" + err.Error()