This commit is contained in:
richboo111
2024-01-10 16:26:18 +08:00
parent 5b1c9c78c3
commit ea9b048e28
2 changed files with 0 additions and 109 deletions

View File

@@ -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: