正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
| @@ -197,7 +197,11 @@ func (l *MiniCreateArticleCommentLogic) MiniCreateArticleComment(req *types.Mini | @@ -197,7 +197,11 @@ func (l *MiniCreateArticleCommentLogic) MiniCreateArticleComment(req *types.Mini | ||
| 197 | 197 | ||
| 198 | // 创建回复消息 | 198 | // 创建回复消息 |
| 199 | var atAllIds = make([]int64, 0) | 199 | var atAllIds = make([]int64, 0) |
| 200 | - atAllIds = append(atAllIds, newComment.ToUserId) | 200 | + if pComment != nil { |
| 201 | + atAllIds = append(atAllIds, articleInfo.AuthorId) | ||
| 202 | + } else { | ||
| 203 | + atAllIds = append(atAllIds, newComment.ToUserId) | ||
| 204 | + } | ||
| 201 | atAllIds = append(atAllIds, atWhoIds...) | 205 | atAllIds = append(atAllIds, atWhoIds...) |
| 202 | var messageLogic = message.NewMiniBusinessLogic(l.ctx, l.svcCtx) | 206 | var messageLogic = message.NewMiniBusinessLogic(l.ctx, l.svcCtx) |
| 203 | if pComment != nil { | 207 | if pComment != nil { |
-
请 注册 或 登录 后发表评论