This commit is contained in:
苏尹岚
2021-03-31 11:24:28 +08:00
parent bc951c1a59
commit 6378fa103d

View File

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