正在显示
2 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -80,7 +80,7 @@ func (l *MiniGetArticleLogic) MiniGetArticle(req *types.MiniArticleGetRequest) ( | @@ -80,7 +80,7 @@ func (l *MiniGetArticleLogic) MiniGetArticle(req *types.MiniArticleGetRequest) ( | ||
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | //获取作者信息 | 82 | //获取作者信息 |
| 83 | - author, _ := l.svcCtx.UserRepository.FindOne(l.ctx, conn, int64(req.UserId)) | 83 | + author, _ := l.svcCtx.UserRepository.FindOne(l.ctx, conn, int64(articleInfo.AuthorId)) |
| 84 | 84 | ||
| 85 | var meLoveFlag int | 85 | var meLoveFlag int |
| 86 | if req.UserId > 0 { | 86 | if req.UserId > 0 { |
| @@ -90,6 +90,7 @@ func (l *SystemUpdateArticleLogic) SystemUpdateArticle(req *types.SystemArticleU | @@ -90,6 +90,7 @@ func (l *SystemUpdateArticleLogic) SystemUpdateArticle(req *types.SystemArticleU | ||
| 90 | Height: h, | 90 | Height: h, |
| 91 | }) | 91 | }) |
| 92 | } | 92 | } |
| 93 | + | ||
| 93 | //检查文章可被哪些人查看 | 94 | //检查文章可被哪些人查看 |
| 94 | whoRead := []int64{} | 95 | whoRead := []int64{} |
| 95 | if len(req.WhoRead) > 0 { | 96 | if len(req.WhoRead) > 0 { |
-
请 注册 或 登录 后发表评论