This commit is contained in:
wucongxing8150 2024-09-19 09:38:46 +08:00
parent bc02dc0285
commit c5ce251e0d

View File

@ -98,6 +98,12 @@ func (r *Article) GetArticle(c *gin.Context) {
return
}
// 检测状态
if article.ArticleStatus == 2 {
responses.OkWithData(nil, c)
return
}
// 获取文章作者
articleAuthorDao := dao.ArticleAuthorDao{}
articleAuthors, err := articleAuthorDao.GetArticleAuthorListPreloadByAuthorId(articleId)