aa
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user