From 5b0f5f03ab99251ee9c1fd8dd818f366dac3a94c Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Mon, 25 Mar 2024 11:10:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=BB=E6=92=AD=E7=AB=AF?= =?UTF-8?q?=20=E8=8E=B7=E5=8F=96=E6=B4=BB=E5=8A=A8=E6=82=AC=E6=B5=AE?= =?UTF-8?q?=E7=AA=97=E7=8A=B6=E6=80=81=E7=9A=84=E6=8E=A5=E5=8F=A3=EF=BC=9A?= =?UTF-8?q?Live.getAnchorActiveImgStatus=EF=BC=8C=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E5=8E=9F=E6=9C=89=E7=9A=84=E6=8E=A5=E5=8F=A3=EF=BC=9ARank.isAc?= =?UTF-8?q?tivity=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yunbao/common/http/LiveHttpUtil.java | 6 +++++- .../main/java/com/yunbao/live/views/LiveRoomViewHolder.java | 2 +- .../java/com/yunbao/live/views/LiveRyAnchorViewHolder.java | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/http/LiveHttpUtil.java b/common/src/main/java/com/yunbao/common/http/LiveHttpUtil.java index 616a2d0f7..cc37ea45f 100644 --- a/common/src/main/java/com/yunbao/common/http/LiveHttpUtil.java +++ b/common/src/main/java/com/yunbao/common/http/LiveHttpUtil.java @@ -906,7 +906,11 @@ public class LiveHttpUtil { .params("anchorUid", anchor_id) .execute(callback); } - + public static void getAnchorActiveImgStatus(String anchor_id, HttpCallback callback) { + HttpClient.getInstance().get("Live.getAnchorActiveImgStatus", LiveHttpConsts.GET_EVENT) + .params("anchorUid", anchor_id) + .execute(callback); + } /** * 重置活动 */ 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 8a3bc077c..6d952b43d 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -2179,7 +2179,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis public void setLiveUid(String liveUid) { mLiveUid = liveUid; - LiveHttpUtil.geteEvent(mLiveUid, new HttpCallback() { + LiveHttpUtil.getAnchorActiveImgStatus(mLiveUid, new HttpCallback() { @Override public void onSuccess(int code, String msg, String[] info) { if (code == 0 && imgEvent != null) { diff --git a/live/src/main/java/com/yunbao/live/views/LiveRyAnchorViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRyAnchorViewHolder.java index ccc49cf7d..a86442a10 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRyAnchorViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRyAnchorViewHolder.java @@ -438,7 +438,7 @@ public class LiveRyAnchorViewHolder extends AbsLiveViewHolder { } public void setLiveUid(String liveUid) { - LiveHttpUtil.geteEvent(liveUid, new HttpCallback() { + LiveHttpUtil.getAnchorActiveImgStatus(liveUid, new HttpCallback() { @Override public void onSuccess(int code, String msg, String[] info) { if (code == 0) {