feat: 【光环助手V5.12.0】端内兼容适配短链接 https://git.shanqu.cc/pm/halo/halo-app-issues/-/issues/1945

This commit is contained in:
张玉久
2022-07-12 17:07:10 +08:00
parent aa0f27c61b
commit e41b6e4430
14 changed files with 450 additions and 358 deletions

View File

@ -81,7 +81,7 @@ public class PostCommentUtils {
observable = RetrofitManager.getInstance().getApi().postReplyToCommunityArticleComment(articleCommunityId,
articleId, commentEntity.getId(), body);
} else {
observable = RetrofitManager.getInstance().getApi().postCommentToCommunityArticle(articleCommunityId, articleId, body);
observable = RetrofitManager.getInstance().getApi().postCommentToCommunityArticle(articleId, body);
}
} else {
if (commentEntity != null) {
@ -122,7 +122,7 @@ public class PostCommentUtils {
if (!TextUtils.isEmpty(answerId)) {
observable = RetrofitManager.getInstance().getApi().postVoteAnswerComment(answerId, commentId);
} else if (!TextUtils.isEmpty(articleId)) {
observable = RetrofitManager.getInstance().getApi().postVoteCommunityArticleComment(articleCommunityId, articleId, commentId);
observable = RetrofitManager.getInstance().getApi().postVoteCommunityArticleComment(articleId, commentId);
} else if (!TextUtils.isEmpty(questionId)) {
observable = RetrofitManager.getInstance().getApi().postVoteQuestionComment(questionId, commentId);
} else {
@ -159,8 +159,8 @@ public class PostCommentUtils {
if (!TextUtils.isEmpty(questionId)) {
observable = RetrofitManager.getInstance().getApi().postUnVoteQuestionComment(questionId, commentId);
} else if (!TextUtils.isEmpty(articleCommunityId) && !TextUtils.isEmpty(articleId)) {
observable = RetrofitManager.getInstance().getApi().postUnVoteArticleComment(articleCommunityId, articleId, commentId);
} else if (!TextUtils.isEmpty(articleId)) {
observable = RetrofitManager.getInstance().getApi().postUnVoteArticleComment(articleId, commentId);
} else {
observable = RetrofitManager.getInstance().getApi().postUnVoteVideoComment(videoId, commentId);
}