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