Compare commits
No commits in common. "9b13f753e69ccbc212c6f8995d0477ffa5fffd74" and "50851aa3030bfda0f6441ab6f8f5a16a636b397b" have entirely different histories.
9b13f753e6
...
50851aa303
@ -194,8 +194,7 @@ func (cr ChatCache) RecountNewMessageTotal(ownerId int64) {
|
||||
if len(messages) > 0 {
|
||||
_ = json.Unmarshal(messages, &data)
|
||||
}
|
||||
lastIndex := strings.Count(key, ":")
|
||||
var sessionId = strings.Split(key, ":")[lastIndex]
|
||||
var sessionId = strings.Split(key, ":")[2]
|
||||
countMap[sessionId] = 0
|
||||
for _, v := range data {
|
||||
if v.WaiterRead == 2 { //统计未读消息数量
|
||||
|
Loading…
Reference in New Issue
Block a user