|
@@ -553,7 +553,12 @@ func GetEdbDataFromMySteelChemical(indexCodes []string, startTime, endTime, orde
|
|
|
err = er
|
|
|
return
|
|
|
}
|
|
|
- postUrl := `https://mds.mysteel.com/dynamic/order/api/fcAbRA`
|
|
|
+ // postUrl := `https://mds.mysteel.com/dynamic/order/api/fcAbRA`
|
|
|
+ postUrl := utils.MySteelChemicalApiUrl
|
|
|
+ if postUrl == "" {
|
|
|
+ err = errors.New("钢联化工接口url未配置")
|
|
|
+ return
|
|
|
+ }
|
|
|
body, err := MySteelChemicalPost(postUrl, "data", postData)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -605,7 +610,12 @@ func getPageIndexInfoMap(pageNum, pageSize int, includeInfo bool) (item *models.
|
|
|
err = er
|
|
|
return
|
|
|
}
|
|
|
- postUrl := `https://mds.mysteel.com/dynamic/order/api/fcAbRA`
|
|
|
+ // postUrl := `https://mds.mysteel.com/dynamic/order/api/fcAbRA`
|
|
|
+ postUrl := utils.MySteelChemicalApiUrl
|
|
|
+ if postUrl == "" {
|
|
|
+ err = errors.New("钢联化工接口url未配置")
|
|
|
+ return
|
|
|
+ }
|
|
|
body, er := MySteelChemicalPost(postUrl, "info", postData)
|
|
|
if er != nil {
|
|
|
err = er
|