|
@@ -5,6 +5,7 @@ import (
|
|
|
"app.yhyue.com/moapp/MessageCenter/rpc/internal/config"
|
|
|
"app.yhyue.com/moapp/MessageCenter/rpc/type/message"
|
|
|
"app.yhyue.com/moapp/jybase/common"
|
|
|
+ "app.yhyue.com/moapp/jybase/redis"
|
|
|
"context"
|
|
|
"errors"
|
|
|
"fmt"
|
|
@@ -96,6 +97,12 @@ func NewUserSendMsg(in *message.NewUserInsertMsgReq) string {
|
|
|
Row4: in.Row4,
|
|
|
}
|
|
|
SentWxTmplAndAppPush(pushData, v, group_id, "", "")
|
|
|
+ key := fmt.Sprintf(MsgCountKey, v, group_id)
|
|
|
+ redis.Del(redisModule, key)
|
|
|
+ if in.MsgType == 11 || in.MsgType == 12 {
|
|
|
+ key1 := fmt.Sprintf(MsgClassCountKey, v, in.MsgType)
|
|
|
+ redis.Del(redisModule, key1)
|
|
|
+ }
|
|
|
}(userIdArr[i], positionId)
|
|
|
}
|
|
|
wg.Wait()
|
|
@@ -163,6 +170,12 @@ func UpdateUserMsgSummary(in *message.BitmapSaveMsgReq) error {
|
|
|
Row4: in.Row4,
|
|
|
}
|
|
|
SentWxTmplAndAppPush(pushData, v, group_id, equityName, equityAddr)
|
|
|
+ key := fmt.Sprintf(MsgCountKey, v, group_id)
|
|
|
+ redis.Del(redisModule, key)
|
|
|
+ if in.MsgType == 11 || in.MsgType == 12 {
|
|
|
+ key1 := fmt.Sprintf(MsgClassCountKey, v, in.MsgType)
|
|
|
+ redis.Del(redisModule, key1)
|
|
|
+ }
|
|
|
}(userIdArr[i])
|
|
|
}
|
|
|
wg.Wait()
|