新增主播端 获取活动悬浮窗状态的接口:Live.getAnchorActiveImgStatus,替换原有的接口:Rank.isActivity,

This commit is contained in:
18401019693 2024-03-25 11:10:46 +08:00
parent 6095d2d04a
commit 5b0f5f03ab
3 changed files with 7 additions and 3 deletions

View File

@ -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);
}
/**
* 重置活动
*/

View File

@ -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) {

View File

@ -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) {