fix: 【光环助手V5.12.0】端内兼容适配短链接(0720测试反馈) https://git.shanqu.cc/pm/halo/halo-app-issues/-/issues/1945

This commit is contained in:
张玉久
2022-07-20 19:44:34 +08:00
parent 8af97a44c8
commit 563d9123c8
7 changed files with 25 additions and 28 deletions

View File

@ -123,7 +123,7 @@ public class PostCommentUtils {
if (!TextUtils.isEmpty(answerId)) {
observable = RetrofitManager.getInstance().getApi().postVoteAnswerComment(answerId, commentId);
} else if (!TextUtils.isEmpty(commentId)) {
} else if (!TextUtils.isEmpty(articleId)) {
observable = RetrofitManager.getInstance().getApi().postVoteCommunityArticleComment(commentId);
} else if (!TextUtils.isEmpty(questionId)) {
observable = RetrofitManager.getInstance().getApi().postVoteQuestionComment(questionId, commentId);
@ -161,7 +161,7 @@ public class PostCommentUtils {
if (!TextUtils.isEmpty(questionId)) {
observable = RetrofitManager.getInstance().getApi().postUnVoteQuestionComment(questionId, commentId);
} else if (!TextUtils.isEmpty(commentId)) {
} else if (!TextUtils.isEmpty(articleId)) {
observable = RetrofitManager.getInstance().getApi().postUnVoteArticleComment(commentId);
} else {
observable = RetrofitManager.getInstance().getApi().postUnVoteVideoComment(videoId, commentId);