- v2 token format changed
- DisableUser - clear all tokens when disable user - handle ding ding user leave event
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"net/http"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
"github.com/astaxie/beego"
|
||||
@@ -24,7 +25,10 @@ func (c *DingDingController) Msg() {
|
||||
obj, callbackResponse := api.DingDingAPI.GetCallbackMsg(dataMap, c.Ctx.Input.RequestBody)
|
||||
if callbackResponse == nil {
|
||||
globals.SugarLogger.Debugf("dingding msg, obj:%s", utils.Format4Output(obj, false))
|
||||
callbackResponse = api.DingDingAPI.Err2CallbackResponse(nil)
|
||||
callbackResponse = cms.OnDingDingMsg(dataMap)
|
||||
if callbackResponse == nil {
|
||||
callbackResponse = api.DingDingAPI.Err2CallbackResponse(nil)
|
||||
}
|
||||
}
|
||||
c.Data["json"] = callbackResponse
|
||||
c.ServeJSON()
|
||||
|
||||
Reference in New Issue
Block a user