fix:最近的文章

上级 9b2611a5
......@@ -39,8 +39,7 @@ public class CsdnCommentServiceImpl implements CsdnCommentService {
@Override
public Boolean isComment(BusinessInfoResponse.ArticleData.Article article, CsdnUserInfo csdnUserInfo) {
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;
}
......
......@@ -26,7 +26,7 @@ public class CsdnLikeServiceImpl implements CsdnLikeService {
public Boolean isLike(String articleId, CsdnUserInfo csdnUserInfo) {
final String userName = csdnUserInfo.getUserName();
final Integer likeStatus = csdnUserInfo.getLikeStatus();
if (LikeStatus.HAVE_ALREADY_LIKED.getCode().equals(likeStatus) || LikeStatus.LIKE_IS_FULL.getCode().equals(likeStatus)) {
if (LikeStatus.LIKE_IS_FULL.getCode().equals(likeStatus)) {
return true;
}
String url = "https://blog.csdn.net/" + userName + "/article/details/" + articleId;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册