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 0314a28716aa76a65dc1551318e43524b7af18b8..eb43e792d41702d68e9d2c1f64531fafeb1c730b 100644 --- a/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCollectServiceImpl.java +++ b/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCollectServiceImpl.java @@ -55,7 +55,6 @@ public class CsdnCollectServiceImpl implements CsdnCollectService { csdnUserInfo.setCommentStatus(CollectStatus.HAVE_ALREADY_COLLECT.getCode()); } else { log.info("文章{}未收藏", articleId); - csdnUserInfo.setCommentStatus(CollectStatus.UN_PROCESSED.getCode()); } return status; } 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 6e8de2bb8a4cb98bbf8dd00188fb6edaeef21a0e..7993cb51472c7c894025f6958d3e6d3d43f66c77 100644 --- a/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCommentServiceImpl.java +++ b/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCommentServiceImpl.java @@ -75,7 +75,6 @@ public class CsdnCommentServiceImpl implements CsdnCommentService { } catch (JsonProcessingException e) { e.printStackTrace(); } - csdnUserInfo.setCommentStatus(CommentStatus.UN_PROCESSED.getCode()); return false; }