Merge branch 'dev' of http://gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss into dev
正在显示
2 个修改的文件
包含
6 行增加
和
2 行删除
@@ -154,7 +154,7 @@ func (l *MiniCreateArticleLogic) MiniCreateArticle(req *types.MiniArticleCreateR | @@ -154,7 +154,7 @@ func (l *MiniCreateArticleLogic) MiniCreateArticle(req *types.MiniArticleCreateR | ||
154 | WhoRead: whoRead, | 154 | WhoRead: whoRead, |
155 | WhoReview: whoReview, | 155 | WhoReview: whoReview, |
156 | Location: domain.Location{ | 156 | Location: domain.Location{ |
157 | - Longitude: req.Location.Latitude, | 157 | + Longitude: req.Location.Longitude, |
158 | Latitude: req.Location.Latitude, | 158 | Latitude: req.Location.Latitude, |
159 | Descript: req.Location.Descript, | 159 | Descript: req.Location.Descript, |
160 | }, | 160 | }, |
@@ -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, newComment.ToUserId) | ||
202 | + } else { | ||
203 | + atAllIds = append(atAllIds, articleInfo.AuthorId) | ||
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 { |
-
请 注册 或 登录 后发表评论