diff --git a/business/partner/purchase/jd/store.go b/business/partner/purchase/jd/store.go index d11fa23d2..fa7313b66 100644 --- a/business/partner/purchase/jd/store.go +++ b/business/partner/purchase/jd/store.go @@ -352,6 +352,9 @@ func (c *PurchaseHandler) OnStoreMsg(vendorOrgCode string, msg *jdapi.CallbackOr } } } + if err != nil { + globals.SugarLogger.Debugf("OnStoreMsg==============%v", err) + } return jdapi.Err2CallbackResponse(err, "") } diff --git a/controllers/jd_callback.go b/controllers/jd_callback.go index a9b9ba988..ff0d6d7e1 100644 --- a/controllers/jd_callback.go +++ b/controllers/jd_callback.go @@ -24,7 +24,6 @@ func (c *DjswController) handleMsg(handler func(*jdapi.API, interface{}) *jdapi. callbackMsg, mapData, callbackResponse := jdapi.GetCallbackMsg(getUsefulRequest(c.Ctx)) if callbackResponse == nil { if jdAPI := jd.GetAPIbyKey(callbackMsg.AppKey); jdAPI != nil { - // 暂时不校验token if callbackResponse = jdAPI.CheckCallbackValidation(mapData, callbackMsg.Sign); callbackResponse == nil { callbackResponse = handler(jdAPI, callbackMsg.Param) } @@ -144,7 +143,6 @@ func (c *DjswController) SinglePromoteCreate() { } func (c *DjswController) StoreCrud() { - globals.SugarLogger.Debugf("======================") if c.Ctx.Input.Method() == http.MethodPost { callbackResponse := c.handleMsg(func(a *jdapi.API, obj interface{}) (callbackResponse *jdapi.CallbackResponse) { callbackResponse = jd.OnStoreMsg(obj.(*jdapi.CallbackOrderMsg))