From 23bf6780dff175a241500383c04a6b45a4d5b9c8 Mon Sep 17 00:00:00 2001 From: x ronger Date: Thu, 23 Apr 2020 18:37:01 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E8=8D=89=E7=A8=BF=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E6=AD=A3=E6=96=87=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/rymcu/vertical/service/impl/ArticleServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); }