|
@@ -227,8 +227,17 @@ func UserMsgList(this *message.UserMsgListReq) *message.UserMsgList {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
data.Count = count
|
|
data.Count = count
|
|
- if !this.IsColumn && this.Read == 0 {
|
|
|
|
- unread = count
|
|
|
|
|
|
+ if !this.IsColumn {
|
|
|
|
+ if this.Read == 0 {
|
|
|
|
+ unread = count
|
|
|
|
+ } else if this.Read == -1 {
|
|
|
|
+ unread = entity.Mysql.Count("message", map[string]interface{}{
|
|
|
|
+ "receive_userid": this.UserId,
|
|
|
|
+ "isdel": 1,
|
|
|
|
+ "appid": this.Appid,
|
|
|
|
+ "isRead": 0,
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
data.Unread = unread
|
|
data.Unread = unread
|
|
return data
|
|
return data
|