1
This commit is contained in:
@@ -19,7 +19,6 @@ type Djsw2Controller struct {
|
||||
|
||||
func (c *Djsw2Controller) handleMsg(handler func(*jdapi.API, interface{}) *jdapi.CallbackResponse) (callbackResponse *jdapi.CallbackResponse) {
|
||||
callbackMsg, _, callbackResponse := jdapi.GetCallbackMsg(getUsefulRequest(c.Ctx))
|
||||
globals.SugarLogger.Debug(utils.Format4Output(callbackMsg, true))
|
||||
if callbackResponse == nil {
|
||||
callbackResponse = handler(api.FakeJdAPI, callbackMsg.Param)
|
||||
}
|
||||
@@ -130,7 +129,6 @@ func (c *Djsw2Controller) transferResponse(funcName string, inCallbackResponse *
|
||||
if inCallbackResponse == nil {
|
||||
return jdapi.SuccessResponse
|
||||
}
|
||||
globals.SugarLogger.Debugf("%s callbackResponse:%s", funcName, utils.Format4Output(inCallbackResponse, true))
|
||||
return inCallbackResponse
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user