- fix ELMOrderStatus
This commit is contained in:
@@ -109,7 +109,7 @@ func (f *FreshFoodAPI) AccessFreshFood(apiStr string, params url.Values) error {
|
||||
fullURL := f.baseURL + "/" + apiStr
|
||||
for i := 0; i < retryCount; i++ {
|
||||
if params != nil {
|
||||
globals.SugarLogger.Debug(params.Encode())
|
||||
// globals.SugarLogger.Debug(params.Encode())
|
||||
response, err = f.client.PostForm(fullURL, params)
|
||||
} else {
|
||||
response, err = f.client.Get(fullURL)
|
||||
@@ -199,7 +199,7 @@ func (f *FreshFoodAPI) ELMOrderStatus(orderId string, status int, statusTime str
|
||||
params.Set(URL_FRESHFOOD_PARA_ORDERSTATUS, utils.Int2Str(status))
|
||||
params.Set(URL_FRESHFOOD_PARA_ORDERSTATUSTIME, statusTime)
|
||||
|
||||
return f.AccessFreshFood(URL_FRESHFOOD_PARA_ORDERSTATUS, params)
|
||||
return f.AccessFreshFood(URL_FRESHFOOD_ORDER_STATUS, params)
|
||||
}
|
||||
|
||||
// mtps api
|
||||
|
||||
Reference in New Issue
Block a user