1
This commit is contained in:
@@ -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, "")
|
return jdapi.Err2CallbackResponse(err, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ func (c *DjswController) handleMsg(handler func(*jdapi.API, interface{}) *jdapi.
|
|||||||
callbackMsg, mapData, callbackResponse := jdapi.GetCallbackMsg(getUsefulRequest(c.Ctx))
|
callbackMsg, mapData, callbackResponse := jdapi.GetCallbackMsg(getUsefulRequest(c.Ctx))
|
||||||
if callbackResponse == nil {
|
if callbackResponse == nil {
|
||||||
if jdAPI := jd.GetAPIbyKey(callbackMsg.AppKey); jdAPI != nil {
|
if jdAPI := jd.GetAPIbyKey(callbackMsg.AppKey); jdAPI != nil {
|
||||||
// 暂时不校验token
|
|
||||||
if callbackResponse = jdAPI.CheckCallbackValidation(mapData, callbackMsg.Sign); callbackResponse == nil {
|
if callbackResponse = jdAPI.CheckCallbackValidation(mapData, callbackMsg.Sign); callbackResponse == nil {
|
||||||
callbackResponse = handler(jdAPI, callbackMsg.Param)
|
callbackResponse = handler(jdAPI, callbackMsg.Param)
|
||||||
}
|
}
|
||||||
@@ -144,7 +143,6 @@ func (c *DjswController) SinglePromoteCreate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *DjswController) StoreCrud() {
|
func (c *DjswController) StoreCrud() {
|
||||||
globals.SugarLogger.Debugf("======================")
|
|
||||||
if c.Ctx.Input.Method() == http.MethodPost {
|
if c.Ctx.Input.Method() == http.MethodPost {
|
||||||
callbackResponse := c.handleMsg(func(a *jdapi.API, obj interface{}) (callbackResponse *jdapi.CallbackResponse) {
|
callbackResponse := c.handleMsg(func(a *jdapi.API, obj interface{}) (callbackResponse *jdapi.CallbackResponse) {
|
||||||
callbackResponse = jd.OnStoreMsg(obj.(*jdapi.CallbackOrderMsg))
|
callbackResponse = jd.OnStoreMsg(obj.(*jdapi.CallbackOrderMsg))
|
||||||
|
|||||||
Reference in New Issue
Block a user