|
@@ -1032,13 +1032,13 @@ func (this *MessaggeService) Chat(in *messagecenter.MessageEntity) (fool bool, e
|
|
|
for _, v := range in.GroupIds {
|
|
|
args := []interface{}{}
|
|
|
groupUser := GetUserByGroupId(tx, v, in.SendId)
|
|
|
+ //发送人自己
|
|
|
+ if !isWithdrawByOthers {
|
|
|
+ args = append(args, in.Appid, messageId, in.ItemType, in.SendId, 2, in.SendId, 2, 2, in.SendId, nowTime, v, 1)
|
|
|
+ //最后一次聊天
|
|
|
+ SocializeSummaryAddOrUpdate(tx, v, in.SendId, 0, messageId, isCustomerServiceAccess, nowTime)
|
|
|
+ }
|
|
|
for _, vv := range groupUser {
|
|
|
- //发送人自己
|
|
|
- if !isWithdrawByOthers {
|
|
|
- args = append(args, in.Appid, messageId, in.ItemType, in.SendId, 2, vv, 2, 2, in.SendId, nowTime, v, 1)
|
|
|
- //最后一次聊天
|
|
|
- SocializeSummaryAddOrUpdate(tx, v, in.SendId, 0, messageId, isCustomerServiceAccess, nowTime)
|
|
|
- }
|
|
|
if !isWithdrawByMyself {
|
|
|
log.Println("获取到群组下员工:", vv)
|
|
|
//接收人其他用户
|