|
@@ -404,7 +404,7 @@ func FindUserClassUnreadAndClassAllMsg(userId string) (classUnreadCountMap map[i
|
|
|
classAllMsgMap[int(v.GroupId)] = Uint32ArrToIntArr(v.ClassAll)
|
|
|
}
|
|
|
}
|
|
|
- rdata, _ := redis.GetBytes(redisModule, fmt.Sprintf(UserClearUnread, userId))
|
|
|
+ rdata, _ := redis.GetNewBytes(redisModule, fmt.Sprintf(UserClearUnread, userId))
|
|
|
rdataArr := []uint32{}
|
|
|
if rdata != nil {
|
|
|
if json.Unmarshal(*rdata, &rdataArr); err != nil {
|
|
@@ -515,7 +515,7 @@ func GetUserMsgSummary(userId string, isfilterActive bool) (userAllMsg, userRead
|
|
|
log.Println("此用户暂无数据:", err)
|
|
|
return userAllMsg, userReadMsg, userUnreadMsg, err
|
|
|
}
|
|
|
- rdata, _ := redis.GetBytes(redisModule, fmt.Sprintf(UserClearUnread, userId))
|
|
|
+ rdata, _ := redis.GetNewBytes(redisModule, fmt.Sprintf(UserClearUnread, userId))
|
|
|
rdataArr := []uint32{}
|
|
|
if rdata != nil {
|
|
|
if json.Unmarshal(*rdata, &rdataArr); err != nil {
|