From 0503d7e71a82e365b0261c7e5849db941c0b1e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E8=8B=B1=E6=9D=B0?= <327782001@qq.com> Date: Wed, 25 Oct 2023 11:42:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=94=B6=E8=97=8F=E7=9A=84=E8=A3=85?= =?UTF-8?q?=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../springbootkwan/service/impl/CsdnCollectServiceImpl.java | 2 +- .../springbootkwan/service/impl/CsdnCommentServiceImpl.java | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCollectServiceImpl.java b/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCollectServiceImpl.java index eb43e79..1d4d627 100644 --- a/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCollectServiceImpl.java +++ b/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCollectServiceImpl.java @@ -52,7 +52,7 @@ public class CsdnCollectServiceImpl implements CsdnCollectService { final boolean status = data.status; if (status) { log.info("文章{}已经收藏过", articleId); - csdnUserInfo.setCommentStatus(CollectStatus.HAVE_ALREADY_COLLECT.getCode()); + csdnUserInfo.setCollectStatus(CollectStatus.HAVE_ALREADY_COLLECT.getCode()); } else { log.info("文章{}未收藏", articleId); } diff --git a/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCommentServiceImpl.java b/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCommentServiceImpl.java index 7993cb5..1e335ed 100644 --- a/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCommentServiceImpl.java +++ b/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCommentServiceImpl.java @@ -32,10 +32,6 @@ public class CsdnCommentServiceImpl implements CsdnCommentService { private String commentListUrl; @Value("${csdn.url.comment_url}") private String commentUrl; - /** - * 评论满了 - */ - private static boolean COMMENT_IS_FULL = false; @Override public Boolean isComment(BusinessInfoResponse.ArticleData.Article article, CsdnUserInfo csdnUserInfo) { -- GitLab