作者 yangfu

消息中心修改

@@ -224,7 +224,6 @@ func CheckUuid(ctx *context.Context) (result bool) { @@ -224,7 +224,6 @@ func CheckUuid(ctx *context.Context) (result bool) {
224 result = true 224 result = true
225 defer func() { 225 defer func() {
226 if msg.Errno != 0 { 226 if msg.Errno != 0 {
227 - //result = false  
228 ctx.Output.JSON(msg, false, false) 227 ctx.Output.JSON(msg, false, false)
229 } 228 }
230 }() 229 }()
@@ -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 }