2222
This commit is contained in:
parent
bc02dc0285
commit
c5ce251e0d
@ -98,6 +98,12 @@ func (r *Article) GetArticle(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 检测状态
|
||||||
|
if article.ArticleStatus == 2 {
|
||||||
|
responses.OkWithData(nil, c)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// 获取文章作者
|
// 获取文章作者
|
||||||
articleAuthorDao := dao.ArticleAuthorDao{}
|
articleAuthorDao := dao.ArticleAuthorDao{}
|
||||||
articleAuthors, err := articleAuthorDao.GetArticleAuthorListPreloadByAuthorId(articleId)
|
articleAuthors, err := articleAuthorDao.GetArticleAuthorListPreloadByAuthorId(articleId)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user