...
|
...
|
@@ -41,7 +41,7 @@ func (l *MiniGetArticleLogic) MiniGetArticle(req *types.MiniArticleGetRequest) ( |
|
|
if articleInfo.CompanyId != req.CompanyId {
|
|
|
return nil, xerr.NewErrMsg("没有查看权限")
|
|
|
}
|
|
|
|
|
|
if articleInfo.AuthorId != int64(req.UserId) {
|
|
|
if len(articleInfo.WhoRead) > 0 {
|
|
|
inWhoRead := false
|
|
|
for _, val := range articleInfo.WhoRead {
|
...
|
...
|
@@ -59,7 +59,7 @@ func (l *MiniGetArticleLogic) MiniGetArticle(req *types.MiniArticleGetRequest) ( |
|
|
return resp, nil
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
if articleInfo.Show == domain.ArticleShowDisable {
|
|
|
// 文章内容不显示
|
|
|
resp = &types.MiniArticleGetResponse{
|
...
|
...
|
|