...
|
...
|
@@ -425,11 +425,13 @@ func MsgChanceComment(header *protocol.RequestHeader, request *protocol.MsgChanc |
|
|
Provider: provider,
|
|
|
}
|
|
|
}
|
|
|
commItem.CommentData = protocol.CommentData{
|
|
|
comment := protocol.CommentData{
|
|
|
Id: chance.CommentId,
|
|
|
CommentTime: chance.CommentTime.Unix() * 1000,
|
|
|
Content: chance.CommentContent,
|
|
|
}
|
|
|
comment.Provider, _ = agg.GetUserBaseInfo(chance.ReceiveUserId, header.CompanyId)
|
|
|
commItem.CommentData = comment
|
|
|
commItem.IsRead = chance.IsRead == 1
|
|
|
commItem.SourceType = chance.SourceType
|
|
|
commItem.MsgId = chance.CommentId
|
...
|
...
|
@@ -500,11 +502,16 @@ func MsgChanceThumbUp(header *protocol.RequestHeader, request *protocol.MsgChanc |
|
|
Provider: provider,
|
|
|
}
|
|
|
}
|
|
|
commItem.ThumbUpData = protocol.ThumbUpData{
|
|
|
if provider, _ = agg.GetUserBaseInfo(chance.Uid, header.CompanyId); err != nil {
|
|
|
|
|
|
}
|
|
|
thumb := protocol.ThumbUpData{
|
|
|
Id: chance.CommentId,
|
|
|
ThumbUpTime: chance.CommentTime.Unix() * 1000,
|
|
|
Content: chance.CommentContent,
|
|
|
}
|
|
|
thumb.Provider, _ = agg.GetUserBaseInfo(chance.ReceiveUserId, header.CompanyId)
|
|
|
commItem.ThumbUpData = thumb
|
|
|
commItem.IsRead = chance.IsRead == 1
|
|
|
commItem.SourceType = chance.SourceType
|
|
|
commItem.MsgId = chance.CommentId
|
...
|
...
|
|