Merge branch 'chat' into dev
This commit is contained in:
commit
9b13f753e6
@ -194,7 +194,8 @@ func (cr ChatCache) RecountNewMessageTotal(ownerId int64) {
|
||||
if len(messages) > 0 {
|
||||
_ = json.Unmarshal(messages, &data)
|
||||
}
|
||||
var sessionId = strings.Split(key, ":")[2]
|
||||
lastIndex := strings.Count(key, ":")
|
||||
var sessionId = strings.Split(key, ":")[lastIndex]
|
||||
countMap[sessionId] = 0
|
||||
for _, v := range data {
|
||||
if v.WaiterRead == 2 { //统计未读消息数量
|
||||
|
Loading…
Reference in New Issue
Block a user