|
@@ -178,9 +178,9 @@ func UserMsgList(this *message.UserMsgListReq) *message.UserMsgList {
|
|
|
//消息未读数
|
|
|
msgType := common.InterfaceToStr(v["group_id"])
|
|
|
column.UnreadMessages = sortUnread[msgType]
|
|
|
+ unread += sortUnread[msgType]
|
|
|
column.Data = sData[msgType]
|
|
|
}
|
|
|
- unread += column.UnreadMessages
|
|
|
columnData = append(columnData, &column)
|
|
|
}
|
|
|
}
|
|
@@ -218,7 +218,7 @@ func UserMsgList(this *message.UserMsgListReq) *message.UserMsgList {
|
|
|
}
|
|
|
}
|
|
|
data.Count = count
|
|
|
- if !this.IsColumn && this.Read == 0 {
|
|
|
+ if this.Read == 0 {
|
|
|
unread = count
|
|
|
if this.IsContainLetter { //是否需要统计私信未读数
|
|
|
unread += unreadMsg(this)
|