This commit is contained in:
richboo111
2024-01-24 14:13:48 +08:00
parent 3bd5106b14
commit ca65ccf637
2 changed files with 16 additions and 12 deletions

View File

@@ -2,7 +2,6 @@ package mtwm
import (
"encoding/json"
"git.rosy.net.cn/baseapi/utils"
"net/http"
"strings"
@@ -123,7 +122,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))
//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 {