|
|
@@ -134,15 +134,13 @@ func (s *MessageService) Create(req *model.CreateSysMessageReq) (err error) {
|
|
|
for _, v := range gset.NewStrSetFrom(sendMsgType).Slice() {
|
|
|
switch v {
|
|
|
case "10": // 10:websocket
|
|
|
- //go BatchSendMessageNotify(userIds, *data)
|
|
|
- s.handleMsgBySetting(userIds, data)
|
|
|
+ go BatchSendMessageNotify(userIds, *data)
|
|
|
fmt.Println(v, "10")
|
|
|
case "20": // 20:邮件
|
|
|
go s.BatchSendUserEmailMsg(userIds, data.MsgTitle, data.MsgContent)
|
|
|
fmt.Println(v, "20")
|
|
|
case "30": // 30:钉钉
|
|
|
- //go s.BatchSendUserDingTalkTextMsg(userIds, data.MsgTitle, data.MsgContent)
|
|
|
- s.handleMsgBySetting(userIds, data)
|
|
|
+ go s.BatchSendUserDingTalkTextMsg(userIds, data.MsgType, data.MsgContent)
|
|
|
fmt.Println(v, "30")
|
|
|
case "40": // 40:微信小程序订阅消息
|
|
|
|