- revert to confirm 200 when calling freshfood from jx-callback.
This commit is contained in:
@@ -130,13 +130,13 @@ func (f *API) AccessFreshFood(apiStr string, params url.Values) error {
|
|||||||
// err = error(nil)
|
// err = error(nil)
|
||||||
// globals.SugarLogger.Debug(fullURL)
|
// globals.SugarLogger.Debug(fullURL)
|
||||||
// globals.SugarLogger.Debug(params)
|
// globals.SugarLogger.Debug(params)
|
||||||
if err == nil && response != nil { // && response.StatusCode == 200 {
|
if err == nil && response != nil && response.StatusCode == 200 {
|
||||||
break
|
break
|
||||||
} else {
|
} else {
|
||||||
globals.SugarLogger.Infof("Call %s error:%v, response: %v", fullURL, err, response)
|
globals.SugarLogger.Infof("Call %s error:%v, response: %v", fullURL, err, response)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err != nil { //|| response.StatusCode != 200 {
|
if err != nil || response.StatusCode != 200 {
|
||||||
globals.SugarLogger.Errorf("Call %s error:%v, url:%s, response: %v", fullURL, err, fullURL, response)
|
globals.SugarLogger.Errorf("Call %s error:%v, url:%s, response: %v", fullURL, err, fullURL, response)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@@ -214,11 +214,12 @@ func (f *API) ELMOrderStatus(orderId string, status int, statusTime string) erro
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f *API) ELMClientUrgeOrder(orderId string) error {
|
func (f *API) ELMClientUrgeOrder(orderId string) error {
|
||||||
params := make(url.Values)
|
return nil
|
||||||
params.Set(URL_FRESHFOOD_PARA_VENDERID, utils.Int2Str(controllers.ELM_VENDERID))
|
// params := make(url.Values)
|
||||||
params.Set(URL_FRESHFOOD_PARA_ORDERID, orderId)
|
// params.Set(URL_FRESHFOOD_PARA_VENDERID, utils.Int2Str(controllers.ELM_VENDERID))
|
||||||
|
// params.Set(URL_FRESHFOOD_PARA_ORDERID, orderId)
|
||||||
|
|
||||||
return f.AccessFreshFood(URL_FRESHFOOD_ELEME_USER_URGE_ORDER, params)
|
// return f.AccessFreshFood(URL_FRESHFOOD_ELEME_USER_URGE_ORDER, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
// mtps api
|
// mtps api
|
||||||
|
|||||||
Reference in New Issue
Block a user