imv2
This commit is contained in:
@@ -87,3 +87,16 @@ func (c *MtwmController) SkuDelete() {
|
||||
func (c *MtwmController) StoreBind() {
|
||||
c.onCallbackMsg(mtwmapi.MsgTypeStoreBind)
|
||||
}
|
||||
|
||||
func (c *MtwmController) IMCallback() {
|
||||
c.Data["json"] = mtwmapi.Err2CallbackResponse(nil, "")
|
||||
msg, callbackResponse := api.MtwmAPI.GetIMCallbackMsg(c.Ctx.Request)
|
||||
if callbackResponse == nil {
|
||||
callbackResponse = mtwm.OnImMsg(msg)
|
||||
if callbackResponse == nil {
|
||||
callbackResponse = mtwmapi.Err2CallbackResponse(nil, "")
|
||||
}
|
||||
}
|
||||
c.Data["json"] = callbackResponse
|
||||
c.ServeJSON()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user