diff --git a/controllers/jd_callback.go b/controllers/jd_callback.go index af79114e0..40a7f7729 100644 --- a/controllers/jd_callback.go +++ b/controllers/jd_callback.go @@ -37,8 +37,11 @@ func (c *DjswController) handleMsg(handler func(*jdapi.API, interface{}) *jdapi. func (c *DjswController) orderStatus() { if c.Ctx.Input.Method() == http.MethodPost { + globals.SugarLogger.Debugf("jd deliverOrder 1") callbackResponse := c.handleMsg(func(a *jdapi.API, obj interface{}) (callbackResponse *jdapi.CallbackResponse) { + globals.SugarLogger.Debugf("jd deliverOrder 2", utils.Format4Output(callbackResponse, false)) callbackResponse = jd.OnOrderMsg(obj.(*jdapi.CallbackOrderMsg)) + globals.SugarLogger.Debugf("jd deliverOrder 3", utils.Format4Output(callbackResponse, false)) return callbackResponse }) c.Data["json"] = c.transferResponse("orderStatus", callbackResponse)