|
|
@@ -140,7 +140,7 @@ func (s *MessageService) Create(req *model.CreateSysMessageReq) (err error) {
|
|
|
go s.BatchSendUserEmailMsg(userIds, data.MsgTitle, data.MsgContent)
|
|
|
fmt.Println(v, "20")
|
|
|
case "30": // 30:钉钉
|
|
|
- go s.BatchSendUserDingTalkTextMsg(userIds, data.MsgType, data.MsgContent)
|
|
|
+ go s.BatchSendUserDingTalkTextMsg(userIds, data.MsgType, data.MsgTitle, data.MsgContent)
|
|
|
fmt.Println(v, "30")
|
|
|
case "40": // 40:微信小程序订阅消息
|
|
|
|
|
|
@@ -157,7 +157,7 @@ func (s *MessageService) handleMsgBySetting(userIds []string, data *model.SysMes
|
|
|
if msgType == "websocket" {
|
|
|
go BatchSendMessageNotify(userIds, *data)
|
|
|
} else if msgType == "dingding" {
|
|
|
- go s.BatchSendUserDingTalkTextMsg(userIds, data.MsgType, data.MsgContent)
|
|
|
+ go s.BatchSendUserDingTalkTextMsg(userIds, data.MsgType, data.MsgTitle, data.MsgContent)
|
|
|
} else {
|
|
|
fmt.Println("非法的消息类型:" + msgType)
|
|
|
}
|