This commit is contained in:
苏尹岚
2021-03-26 14:57:41 +08:00
parent e552c8453e
commit 5afc312f8d

View File

@@ -22,9 +22,11 @@ type DjswController struct {
func (c *DjswController) handleMsg(handler func(*jdapi.API, interface{}) *jdapi.CallbackResponse) (callbackResponse *jdapi.CallbackResponse) {
callbackMsg, mapData, callbackResponse := jdapi.GetCallbackMsg(getUsefulRequest(c.Ctx))
globals.SugarLogger.Debug(utils.Format4Output(callbackMsg, true))
globals.SugarLogger.Debug(utils.Format4Output(callbackResponse, true))
if callbackResponse == nil {
if jdAPI := jd.GetAPI(jd.AppKey2OrgCode(callbackMsg.AppKey)); jdAPI != nil {
if callbackResponse = jdAPI.CheckCallbackValidation(mapData, callbackMsg.Sign); callbackResponse == nil {
globals.SugarLogger.Debugf("22222222222222222222222222222222222222", utils.Format4Output(callbackResponse, true))
callbackResponse = handler(jdAPI, callbackMsg.Param)
}
} else {