From 6378fa103d6ce65f58d7d45151fe03481ad74de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 31 Mar 2021 11:24:28 +0800 Subject: [PATCH] a --- controllers/jd_callback.go | 3 +++ 1 file changed, 3 insertions(+) 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)