This commit is contained in:
邹宗楠
2025-12-18 09:33:16 +08:00
parent aa0e94ac6e
commit 422ff821f1
13 changed files with 69360 additions and 69319 deletions

View File

@@ -3,6 +3,8 @@ package controllers
import (
"bytes"
"fmt"
"git.rosy.net.cn/baseapi/platformapi/dingdingapi"
"git.rosy.net.cn/jx-callback/business/jxutils/ddmsg"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/business/partner/im"
"io/ioutil"
@@ -255,9 +257,9 @@ func (c *DjswController) imMsg() {
} else {
var base *jdapi.BaseInfo
if utils.UnmarshalUseNumber(msg, &base); err == nil {
globals.SugarLogger.Debugf("-----url := %s", url)
globals.SugarLogger.Debugf("-----msg := %s", string(msg))
globals.SugarLogger.Debugf("-----base := %s", utils.Format4Output(base, false))
if url == "msgReadAck" || url == "chatRiskMsg" {
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", fmt.Sprintf("jdIm:%s消息推送", url), utils.Format4Output(msg, false))
}
callbackResponse = jdapi.Err2CallbackResponse(im.ReadMsgFromVendor(model.VendorIDJD, url, []byte(base.JdParamJson)), "")
callbackResponse = jdapi.Err2CallbackResponse(nil, "")
}