diff --git a/platformapi/sfps2/callback.go b/platformapi/sfps2/callback.go index a4e5ae99..3e98d17f 100644 --- a/platformapi/sfps2/callback.go +++ b/platformapi/sfps2/callback.go @@ -3,6 +3,8 @@ package sfps2 import ( "encoding/json" "fmt" + "git.rosy.net.cn/baseapi/utils" + "git.rosy.net.cn/jx-callback/globals" "io/ioutil" "net/http" ) @@ -126,6 +128,7 @@ func (a *API) GetCallbackUrlIndex(request *http.Request) (map[string]interface{} temp = map[string]interface{}{} ) if err = json.Unmarshal(data, &temp); err == nil { + globals.SugarLogger.Debugf("GetCallbackUrlIndex temp=%s", utils.Format4Output(temp, false)) urlIndex = temp["url_index"].(string) fmt.Println(urlIndex) } @@ -160,6 +163,7 @@ func (a *API) GetCallbackUrlIndex(request *http.Request) (map[string]interface{} default: return nil, CallbackResponseErr(false) } + globals.SugarLogger.Debugf("GetCallbackUrlIndex result=%s", utils.Format4Output(result, false)) return result, SuccessResponse }