作者 yangfu

上传修改

@@ -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