- 门店状态报警格式调整,使用markdown语法

This commit is contained in:
gazebo
2019-07-17 09:22:30 +08:00
parent 13409e141f
commit b50c505336
4 changed files with 28 additions and 16 deletions

View File

@@ -6,6 +6,8 @@ import (
"strings"
"time"
"git.rosy.net.cn/baseapi/platformapi/dingdingapi"
"git.rosy.net.cn/jx-callback/business/auth2/authprovider/mobile"
"git.rosy.net.cn/jx-callback/business/jxutils/msg"
@@ -185,7 +187,7 @@ func SendMsg2Somebody(ctx *jxcontext.Context, mobileNum, verifyCode, msgType, ms
for _, v := range receiveMsgUsersMap[msgType] {
user, err2 := dao.GetUserByID(db, "name", v)
if err2 == nil {
msg.SendUserMessage(user.GetID(), msgType, msgContent)
msg.SendUserMessage(dingdingapi.MsgTyeText, user.GetID(), msgType, msgContent)
} else if err == nil {
err = err2
}