...
|
...
|
@@ -187,10 +187,12 @@ func (l *MiniBusinessLogic) MiniBusiness(req *types.MessageRequest, msgType doma |
|
|
// 评论
|
|
|
if v, ok := commentIdMap[item.CommentId]; ok && v != nil {
|
|
|
to.Comment = &types.SimpleComment{
|
|
|
Id: v.Id,
|
|
|
Content: v.Content,
|
|
|
Show: int(v.Show),
|
|
|
MatchUrl: v.MatchUrl,
|
|
|
Id: v.Id,
|
|
|
Content: v.Content,
|
|
|
Show: int(v.Show),
|
|
|
CountReply: v.CountReply,
|
|
|
CountUserLove: v.CountUserLove,
|
|
|
MatchUrl: v.MatchUrl,
|
|
|
}
|
|
|
to.Comment.AtWho = make([]types.CommentAtWho, 0)
|
|
|
for _, who := range v.AtWho {
|
...
|
...
|
@@ -204,10 +206,12 @@ func (l *MiniBusinessLogic) MiniBusiness(req *types.MessageRequest, msgType doma |
|
|
// 被回复的评论
|
|
|
if v, ok := commentIdMap[item.CommentParentId]; ok && v != nil {
|
|
|
to.CommentParent = &types.SimpleComment{
|
|
|
Id: v.Id,
|
|
|
Content: v.Content,
|
|
|
Show: int(v.Show),
|
|
|
MatchUrl: v.MatchUrl,
|
|
|
Id: v.Id,
|
|
|
Content: v.Content,
|
|
|
Show: int(v.Show),
|
|
|
CountReply: v.CountReply,
|
|
|
CountUserLove: v.CountUserLove,
|
|
|
MatchUrl: v.MatchUrl,
|
|
|
}
|
|
|
to.CommentParent.AtWho = make([]types.CommentAtWho, 0)
|
|
|
for _, who := range v.AtWho {
|
...
|
...
|
|