From 5a4001c8581185a67a021f30b1affb1e979e93fb Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 17 Aug 2023 13:45:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=80=80=E5=87=BA=E7=B2=89?= =?UTF-8?q?=E4=B8=9D=E5=9B=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yunbao/common/http/CommonHttpUtil.java | 4 ++-- .../main/java/com/yunbao/common/http/live/LiveNetManager.java | 4 ++-- .../main/java/com/yunbao/live/views/LiveRoomViewHolder.java | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/http/CommonHttpUtil.java b/common/src/main/java/com/yunbao/common/http/CommonHttpUtil.java index 5123178c6..7431a5d51 100644 --- a/common/src/main/java/com/yunbao/common/http/CommonHttpUtil.java +++ b/common/src/main/java/com/yunbao/common/http/CommonHttpUtil.java @@ -316,13 +316,13 @@ public class CommonHttpUtil { public void onSuccess(int code, String msg, String[] info) { if (code == 0 && info.length > 0 || code == 1001) { int isAttention = JSON.parseObject(info[0]).getIntValue("isattent");//1是 关注 0是未关注 - if (code == 1001) { + /* if (code == 1001) { if (WordUtil.isNewZh()) { ToastUtil.show("粉絲團等級已清零,待領取獎勵已自動領取至【個性裝扮】"); } else { ToastUtil.show("The level of the fan club has been cleared, and the rewards to be claimed have been automatically received to [Personalized Dressing]"); } - } + }*/ EventBus.getDefault().post(new FollowEvent(touid, isAttention)); if (callback != null) { callback.callback(isAttention); diff --git a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java index 11ea3c8f5..76f942bab 100644 --- a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java +++ b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java @@ -179,13 +179,13 @@ public class LiveNetManager { List setAttentsModels = listResponseModel.getData().getInfo(); if (setAttentsModels.size() > 0) { if (callback != null) { - if (listResponseModel.getData().getCode() == 1001) { + /* if (listResponseModel.getData().getCode() == 1001) { if (WordUtil.isNewZh()) { ToastUtil.show("粉絲團等級已清零,待領取獎勵已自動領取至【個性裝扮】"); } else { ToastUtil.show("The level of the fan club has been cleared, and the rewards to be claimed have been automatically received to [Personalized Dressing]"); } - } + }*/ callback.onSuccess(setAttentsModels.get(0)); } } else { diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index 8f0b709af..b2645abbf 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -2665,7 +2665,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis mViewMedal.setVisibility(View.GONE); } else { if (mBtnFollow.getVisibility() == View.VISIBLE) { - LiveAudienceActivity.is_fans = "2"; mBtnFollow.setVisibility(View.GONE); mViewMedal.setVisibility(View.VISIBLE); }