This commit is contained in:
richboo111
2024-01-24 09:41:19 +08:00
parent 4755c7ed9b
commit 8241434e91
2 changed files with 22 additions and 15 deletions

View File

@@ -2,6 +2,7 @@ package mtwm
import (
"encoding/json"
"git.rosy.net.cn/baseapi/utils"
"net/http"
"strings"
@@ -122,7 +123,7 @@ func GetMsgCallBackUrl(msgType, appId string) string {
// OnImMsg im消息回调
func OnImMsg(msg *mtwmapi.ImCallbackMsg) (response *mtwmapi.CallbackResponse) {
globals.SugarLogger.Debugf("OnImMsg test0124 msg:=%s", utils.Format4Output(msg, false))
if str, err := json.Marshal(msg.PushContent); err == nil {
err = im.ReadMsgFromVendor(model.VendorIDMTWM, "", str)
if err != nil {