fix:未处理

上级 5aa09188
...@@ -72,14 +72,14 @@ public class CsdnCommentServiceImpl implements CsdnCommentService { ...@@ -72,14 +72,14 @@ public class CsdnCommentServiceImpl implements CsdnCommentService {
} catch (JsonProcessingException e) { } catch (JsonProcessingException e) {
e.printStackTrace(); e.printStackTrace();
} }
csdnUserInfo.setCommentStatus(CommentStatus.UN_PROCESSED.getCode());
return false; return false;
} }
@Override @Override
public Boolean comment(String articleId, CsdnUserInfo csdnUserInfo, CsdnTripletDayInfo csdnTripletDayInfo) { public Boolean comment(String articleId, CsdnUserInfo csdnUserInfo, CsdnTripletDayInfo csdnTripletDayInfo) {
final Integer commentStatus = csdnUserInfo.getCommentStatus(); final Integer commentStatus = csdnUserInfo.getCommentStatus();
if (CommentStatus.HAVE_ALREADY_COMMENT.getCode().equals(commentStatus) if (CommentStatus.COMMENT_IS_FULL.getCode().equals(commentStatus)
|| CommentStatus.COMMENT_IS_FULL.getCode().equals(commentStatus)
|| CommentStatus.RESTRICTED_COMMENTS.getCode().equals(commentStatus)) { || CommentStatus.RESTRICTED_COMMENTS.getCode().equals(commentStatus)) {
return true; return true;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册