|
...
|
...
|
@@ -21,6 +21,13 @@ func MessageCenter(header *protocol.RequestHeader, request *protocol.MessageCent |
|
|
|
)
|
|
|
|
rsp = &protocol.MessageCenterResponse{}
|
|
|
|
rsp.Totals = make([]*protocol.MessageTotal, 0)
|
|
|
|
//注入公司校验
|
|
|
|
if err = agg.CheckCompanyPermission(header.CompanyId); err != nil {
|
|
|
|
log.Error(err)
|
|
|
|
err = protocol.NewErrWithMessage(4141)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
if request.MsgType&protocol.MsgTypeInteraction > 0 {
|
|
|
|
if request.MsgType&protocol.MsgTypeThumbUp == 0 {
|
|
|
|
request.MsgType |= protocol.MsgTypeThumbUp
|
...
|
...
|
|