From 2b3b7b5ac46c8701d645be18431b22599d8f158a Mon Sep 17 00:00:00 2001 From: ronger Date: Wed, 26 Aug 2020 09:16:27 +0800 Subject: [PATCH] =?UTF-8?q?:mag:=20=E6=94=B9=E5=96=84=20SEO=20=E6=8F=90?= =?UTF-8?q?=E4=BA=A4/=E6=9B=B4=E6=96=B0=E6=9C=BA=E5=88=B6?= 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 ea482ca..6ee4fe4 100644 --- a/src/main/java/com/rymcu/vertical/service/impl/ArticleServiceImpl.java +++ b/src/main/java/com/rymcu/vertical/service/impl/ArticleServiceImpl.java @@ -141,7 +141,7 @@ public class ArticleServiceImpl extends AbstractService
implements Arti newArticle.setArticleStatus(article.getArticleStatus()); articleMapper.insertSelective(newArticle); articleMapper.insertArticleContent(newArticle.getIdArticle(), articleContent, articleContentHtml); - if (!ProjectConstant.ENV.equals(env) && defaultStatus.equals(newArticle.getArticleStatus()) && articleContent.length() > MAX_PREVIEW * 3) { + if (!ProjectConstant.ENV.equals(env) && defaultStatus.equals(newArticle.getArticleStatus()) && articleContent.length() >= MAX_PREVIEW) { BaiDuUtils.sendSEOData(newArticle.getArticlePermalink()); } } else { @@ -155,7 +155,7 @@ public class ArticleServiceImpl extends AbstractService
implements Arti newArticle.setArticleStatus(article.getArticleStatus()); newArticle.setUpdatedTime(new Date()); articleMapper.updateArticleContent(newArticle.getIdArticle(), articleContent, articleContentHtml); - if (!ProjectConstant.ENV.equals(env) && defaultStatus.equals(newArticle.getArticleStatus()) && articleContent.length() > MAX_PREVIEW * 3) { + if (!ProjectConstant.ENV.equals(env) && defaultStatus.equals(newArticle.getArticleStatus()) && articleContent.length() >= MAX_PREVIEW) { BaiDuUtils.sendUpdateSEOData(newArticle.getArticlePermalink()); } }