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 9346b5068439a4cb0a48cd066c432bab2d76d700..051f93c0c3b20e3b6c6d8e4ab09fba108421b324 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; }