This commit is contained in:
suyl
2021-08-17 16:52:54 +08:00
parent 9da1de078e
commit 16315d5e83
2 changed files with 2 additions and 1 deletions

View File

@@ -451,6 +451,7 @@ func DisableUser(ctx *jxcontext.Context, userID string) (err error) {
func OnDingDingMsg(msg map[string]interface{}) (callbackResponse *dingdingapi.CallbackResponse) { func OnDingDingMsg(msg map[string]interface{}) (callbackResponse *dingdingapi.CallbackResponse) {
eventType := utils.Interface2String(msg[dingdingapi.KeyEventType]) eventType := utils.Interface2String(msg[dingdingapi.KeyEventType])
globals.SugarLogger.Debugf("dingding msg 2:%s", utils.Format4Output(msg, false))
if eventType == dingdingapi.CBTagUserLeaveOrg { if eventType == dingdingapi.CBTagUserLeaveOrg {
var ( var (
authBind *model.AuthBind authBind *model.AuthBind

View File

@@ -25,7 +25,7 @@ func (c *DingDingController) Msg() {
obj, callbackResponse := api.DingDingAPI.GetCallbackMsg(dataMap, c.Ctx.Input.RequestBody) obj, callbackResponse := api.DingDingAPI.GetCallbackMsg(dataMap, c.Ctx.Input.RequestBody)
if callbackResponse == nil { if callbackResponse == nil {
globals.SugarLogger.Debugf("dingding msg, obj:%s", utils.Format4Output(obj, false)) globals.SugarLogger.Debugf("dingding msg, obj:%s", utils.Format4Output(obj, false))
callbackResponse = cms.OnDingDingMsg(dataMap) callbackResponse = cms.OnDingDingMsg(obj)
if callbackResponse == nil { if callbackResponse == nil {
callbackResponse = api.DingDingAPI.Err2CallbackResponse(nil) callbackResponse = api.DingDingAPI.Err2CallbackResponse(nil)
} }