diff --git a/src/main/java/com/rymcu/vertical/service/impl/ArticleServiceImpl.java b/src/main/java/com/rymcu/vertical/service/impl/ArticleServiceImpl.java index c289f46..8e93a8d 100644 --- a/src/main/java/com/rymcu/vertical/service/impl/ArticleServiceImpl.java +++ b/src/main/java/com/rymcu/vertical/service/impl/ArticleServiceImpl.java @@ -285,9 +285,9 @@ public class ArticleServiceImpl extends AbstractService
implements Arti List tags = articleMapper.selectTags(article.getIdArticle()); article.setTags(tags); ArticleContent articleContent = articleMapper.selectArticleContent(article.getIdArticle()); - if (type == 1){ + if (type.equals(1) || type.equals(0)){ article.setArticleContent(articleContent.getArticleContentHtml()); - } else if (type == 2) { + } else if (type.equals(2)) { article.setArticleContent(articleContent.getArticleContent()); }