作者 yangfu
@@ -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 + if pComment != nil {
200 atAllIds = append(atAllIds, newComment.ToUserId) 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 {