This commit is contained in:
邹宗楠
2023-01-29 16:12:49 +08:00
parent 10bfe1a6e1
commit d1871e6541
2 changed files with 5 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ package ddmsg
import (
"fmt"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/jxutils/enterprise_msg"
"git.rosy.net.cn/jx-callback/business/model/dao"
@@ -41,7 +42,9 @@ func SendUserMessage(msgType, userID, title, content string) (err error) {
globals.SugarLogger.Errorf("get user err %v", err)
continue
}
enterprise_msg.SendUserMessage(*userInfo.Mobile, title, "", content)
globals.SugarLogger.Debugf("=============userInfo %s", utils.Format4Output(userInfo, false))
err3 := enterprise_msg.SendUserMessage(*userInfo.Mobile, title, "", content)
globals.SugarLogger.Errorf("=======err3 %v", err3)
}
break
}

View File

@@ -8,6 +8,7 @@ import (
// SendUserMessage 发送文本卡片
func SendUserMessage(phone, title, description, url string) error {
globals.SugarLogger.Debugf("=========================进来了")
// 根据电话号码获取用户touserId
enterpriseUserId, err := api.EnterpriseChatMin.GetUserIdByMobile(phone)
if err != nil {