正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
| @@ -56,9 +56,15 @@ func MessageCenter(header *protocol.RequestHeader, request *protocol.MessageCent | @@ -56,9 +56,15 @@ func MessageCenter(header *protocol.RequestHeader, request *protocol.MessageCent | ||
| 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 | } | 58 | } |
| 59 | + //TODO:测试注释 | ||
| 60 | + if item.MsgTotal > 0 { | ||
| 61 | + item.MsgTotal = 200 | ||
| 62 | + } | ||
| 59 | list = append(list, item) | 63 | list = append(list, item) |
| 60 | } | 64 | } |
| 61 | if interactionCount > 0 { | 65 | if interactionCount > 0 { |
| 66 | + //TODO:测试注释 | ||
| 67 | + interactionCount = 200 | ||
| 62 | list = append(list, &protocol.MessageTotal{MsgType: protocol.MsgTypeInteraction, MsgTotal: interactionCount}) | 68 | list = append(list, &protocol.MessageTotal{MsgType: protocol.MsgTypeInteraction, MsgTotal: interactionCount}) |
| 63 | } | 69 | } |
| 64 | rsp.Totals = list | 70 | rsp.Totals = list |
-
请 注册 或 登录 后发表评论