Compare commits

..

No commits in common. "50851aa3030bfda0f6441ab6f8f5a16a636b397b" and "b89b86be5db22875383235cd8646bfe3d806d72f" have entirely different histories.

View File

@ -194,7 +194,7 @@ func (cr ChatCache) RecountNewMessageTotal(ownerId int64) {
if len(messages) > 0 { if len(messages) > 0 {
_ = json.Unmarshal(messages, &data) _ = json.Unmarshal(messages, &data)
} }
var sessionId = strings.Split(key, ":")[2] var sessionId = strings.Split(key, ":")[1]
countMap[sessionId] = 0 countMap[sessionId] = 0
for _, v := range data { for _, v := range data {
if v.WaiterRead == 2 { //统计未读消息数量 if v.WaiterRead == 2 { //统计未读消息数量