From 7c2085c3f9f60ac726a4808c16de4ca3ead0ae8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E8=8B=B1=E6=9D=B0?= <327782001@qq.com> Date: Sat, 28 Oct 2023 17:34:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=9C=AA=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../springbootkwan/service/impl/CsdnCommentServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 9346b50..051f93c 100644 --- a/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCommentServiceImpl.java +++ b/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCommentServiceImpl.java @@ -72,14 +72,14 @@ public class CsdnCommentServiceImpl implements CsdnCommentService { } catch (JsonProcessingException e) { e.printStackTrace(); } + csdnUserInfo.setCommentStatus(CommentStatus.UN_PROCESSED.getCode()); return false; } @Override public Boolean comment(String articleId, CsdnUserInfo csdnUserInfo, CsdnTripletDayInfo csdnTripletDayInfo) { final Integer commentStatus = csdnUserInfo.getCommentStatus(); - if (CommentStatus.HAVE_ALREADY_COMMENT.getCode().equals(commentStatus) - || CommentStatus.COMMENT_IS_FULL.getCode().equals(commentStatus) + if (CommentStatus.COMMENT_IS_FULL.getCode().equals(commentStatus) || CommentStatus.RESTRICTED_COMMENTS.getCode().equals(commentStatus)) { return true; } -- GitLab