1
This commit is contained in:
@@ -134,9 +134,7 @@ func Err2CallbackResponse(err error) *CallbackResponse {
|
||||
|
||||
// GetCallbackUrlIndex 配送状态更改回调
|
||||
func (a *API) GetCallbackUrlIndex(request *http.Request) (map[string]interface{}, *CallbackResponse) {
|
||||
globals.SugarLogger.Debugf("sfsfsf GetCallbackUrlIndex method=%s,url=%s", request.Method, request.URL)
|
||||
data, err := ioutil.ReadAll(request.Body)
|
||||
globals.SugarLogger.Debugf("=======data=%s", string(data))
|
||||
if err != nil {
|
||||
return nil, CallbackResponseErr(false)
|
||||
}
|
||||
@@ -148,7 +146,6 @@ func (a *API) GetCallbackUrlIndex(request *http.Request) (map[string]interface{}
|
||||
if err = json.Unmarshal(data, &temp); err == nil {
|
||||
urlIndex = temp["url_index"].(string)
|
||||
}
|
||||
globals.SugarLogger.Debugf("sfsfsf test data=%s,urlIndex=%s", utils.Format4Output(temp, false), urlIndex)
|
||||
result := make(map[string]interface{}, 0)
|
||||
switch urlIndex {
|
||||
case UrlIndexRiderStatus:
|
||||
|
||||
Reference in New Issue
Block a user