|
@@ -99,7 +99,7 @@ func DealGroupMessage(recordID int, req *md.BatchSendGroupMessageReq) { |
|
|
Content: req.Content, |
|
|
Content: req.Content, |
|
|
} |
|
|
} |
|
|
// 1.2 逐个推送到 mq |
|
|
// 1.2 逐个推送到 mq |
|
|
ch.Publish(md2.IMEggEnergyExchange, data, md2.IMEggEnergyRoutKeyForBatchSendMessageData) |
|
|
|
|
|
|
|
|
ch.Publish(md2.IMEggEnergyExchange, utils.SerializeStr(data), md2.IMEggEnergyRoutKeyForBatchSendMessageData) |
|
|
// 1.3 记录推送的群ID |
|
|
// 1.3 记录推送的群ID |
|
|
groupIDs = append(groupIDs, utils.Int64ToStr(groupWithOwner.GroupID)) |
|
|
groupIDs = append(groupIDs, utils.Int64ToStr(groupWithOwner.GroupID)) |
|
|
} |
|
|
} |
|
@@ -140,7 +140,7 @@ func DealGroupMessage(recordID int, req *md.BatchSendGroupMessageReq) { |
|
|
Content: req.Content, |
|
|
Content: req.Content, |
|
|
} |
|
|
} |
|
|
// 1.2 逐个推送到 mq |
|
|
// 1.2 逐个推送到 mq |
|
|
ch.Publish(md2.IMEggEnergyExchange, data, md2.IMEggEnergyRoutKeyForBatchSendMessageData) |
|
|
|
|
|
|
|
|
ch.Publish(md2.IMEggEnergyExchange, utils.SerializeStr(data), md2.IMEggEnergyRoutKeyForBatchSendMessageData) |
|
|
groupIDs = sendCondition |
|
|
groupIDs = sendCondition |
|
|
} |
|
|
} |
|
|
} else if len(notCondition) != 0 && len(sendCondition) == 0 { |
|
|
} else if len(notCondition) != 0 && len(sendCondition) == 0 { |
|
@@ -163,7 +163,7 @@ func DealGroupMessage(recordID int, req *md.BatchSendGroupMessageReq) { |
|
|
Content: req.Content, |
|
|
Content: req.Content, |
|
|
} |
|
|
} |
|
|
// 1.2 逐个推送到 mq |
|
|
// 1.2 逐个推送到 mq |
|
|
ch.Publish(md2.IMEggEnergyExchange, data, md2.IMEggEnergyRoutKeyForBatchSendMessageData) |
|
|
|
|
|
|
|
|
ch.Publish(md2.IMEggEnergyExchange, utils.SerializeStr(data), md2.IMEggEnergyRoutKeyForBatchSendMessageData) |
|
|
// 1.3 记录推送的群ID |
|
|
// 1.3 记录推送的群ID |
|
|
groupIDs = append(groupIDs, utils.Int64ToStr(groupUser.GroupId)) |
|
|
groupIDs = append(groupIDs, utils.Int64ToStr(groupUser.GroupId)) |
|
|
} |
|
|
} |
|
@@ -229,7 +229,7 @@ func DealUserMessage(recordID int, req *md.BatchSendUserMessageReq) { |
|
|
Content: req.Content, |
|
|
Content: req.Content, |
|
|
} |
|
|
} |
|
|
// 1.2 逐个推送到 mq |
|
|
// 1.2 逐个推送到 mq |
|
|
ch.Publish(md2.IMEggEnergyExchange, data, md2.IMEggEnergyRoutKeyForBatchSendMessageData) |
|
|
|
|
|
|
|
|
ch.Publish(md2.IMEggEnergyExchange, utils.SerializeStr(data), md2.IMEggEnergyRoutKeyForBatchSendMessageData) |
|
|
// 1.3 记录推送的用户IM ID |
|
|
// 1.3 记录推送的用户IM ID |
|
|
userIMIDs = append(userIMIDs, utils.Int64ToStr(customerServiceWithUser.UserIMID)) |
|
|
userIMIDs = append(userIMIDs, utils.Int64ToStr(customerServiceWithUser.UserIMID)) |
|
|
} |
|
|
} |
|
@@ -277,7 +277,7 @@ func DealUserMessage(recordID int, req *md.BatchSendUserMessageReq) { |
|
|
Content: req.Content, |
|
|
Content: req.Content, |
|
|
} |
|
|
} |
|
|
// 1.2 逐个推送到 mq |
|
|
// 1.2 逐个推送到 mq |
|
|
ch.Publish(md2.IMEggEnergyExchange, data, md2.IMEggEnergyRoutKeyForBatchSendMessageData) |
|
|
|
|
|
|
|
|
ch.Publish(md2.IMEggEnergyExchange, utils.SerializeStr(data), md2.IMEggEnergyRoutKeyForBatchSendMessageData) |
|
|
// 1.3 记录推送的群ID |
|
|
// 1.3 记录推送的群ID |
|
|
userIMIDs = append(userIMIDs, utils.Int64ToStr(customerServiceWithUser.UserIMID)) |
|
|
userIMIDs = append(userIMIDs, utils.Int64ToStr(customerServiceWithUser.UserIMID)) |
|
|
} |
|
|
} |
|
@@ -335,7 +335,7 @@ func DealUserMessage(recordID int, req *md.BatchSendUserMessageReq) { |
|
|
Content: req.Content, |
|
|
Content: req.Content, |
|
|
} |
|
|
} |
|
|
// 1.2 逐个推送到 mq |
|
|
// 1.2 逐个推送到 mq |
|
|
ch.Publish(md2.IMEggEnergyExchange, data, md2.IMEggEnergyRoutKeyForBatchSendMessageData) |
|
|
|
|
|
|
|
|
ch.Publish(md2.IMEggEnergyExchange, utils.SerializeStr(data), md2.IMEggEnergyRoutKeyForBatchSendMessageData) |
|
|
// 1.3 记录推送的用户IM ID |
|
|
// 1.3 记录推送的用户IM ID |
|
|
userIMIDs = append(userIMIDs, utils.Int64ToStr(customerServiceWithUser.UserIMID)) |
|
|
userIMIDs = append(userIMIDs, utils.Int64ToStr(customerServiceWithUser.UserIMID)) |
|
|
} |
|
|
} |
|
|