|
@@ -55,6 +55,9 @@ func MessageCenter(header *protocol.RequestHeader, request *protocol.MessageCent |
|
@@ -55,6 +55,9 @@ func MessageCenter(header *protocol.RequestHeader, request *protocol.MessageCent |
55
|
var tmpTotal int
|
55
|
var tmpTotal int
|
56
|
models.GetBulletinUserMsgTotals(header.UserId, header.CompanyId, request.MsgType, &tmpTotal)
|
56
|
models.GetBulletinUserMsgTotals(header.UserId, header.CompanyId, request.MsgType, &tmpTotal)
|
57
|
item.MsgTotal = tmpTotal
|
57
|
item.MsgTotal = tmpTotal
|
|
|
58
|
+ if tmpTotal == 0 {
|
|
|
59
|
+ continue
|
|
|
60
|
+ }
|
58
|
}
|
61
|
}
|
59
|
list = append(list, item)
|
62
|
list = append(list, item)
|
60
|
}
|
63
|
}
|