修复PK排位赛信息问题

This commit is contained in:
zlzw 2024-01-20 15:15:30 +08:00
parent f770370be0
commit 1eb43fb8cf
2 changed files with 6 additions and 6 deletions

View File

@ -2459,9 +2459,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
} }
pkRankLayout.setTag(mLiveUid); pkRankLayout.setTag(mLiveUid);
pkUidTmp = pkUid; pkUidTmp = pkUid;
mRedVal.setVisibility(View.GONE);
mBlueVal.setVisibility(View.GONE);
mPkRankTopIcon.setVisibility(View.GONE);
new LoadDian9TuUtil().loadDian9TuAssets2(mContext, liveRankPk2, "rectangle_new.png", 1); new LoadDian9TuUtil().loadDian9TuAssets2(mContext, liveRankPk2, "rectangle_new.png", 1);
} }
@ -2491,7 +2488,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
} }
} }
public void initRankPKInfo(String mLiveUid) { public void initRankPKInfo(String mLiveUid,String pkUid) {
LiveNetManager.get(mContext) LiveNetManager.get(mContext)
.getRandomPk(mLiveUid, pkUid, new com.yunbao.common.http.base.HttpCallback<PkRankBean>() { .getRandomPk(mLiveUid, pkUid, new com.yunbao.common.http.base.HttpCallback<PkRankBean>() {
@Override @Override
@ -2849,6 +2846,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
pkUid = ""; pkUid = "";
goto_room_view.setVisibility(View.GONE); goto_room_view.setVisibility(View.GONE);
livePKUserListBean = new LivePKUserListBean(); livePKUserListBean = new LivePKUserListBean();
mRedVal.setVisibility(View.GONE);
mBlueVal.setVisibility(View.GONE);
mPkRankTopIcon.setVisibility(View.GONE);
} }
/** /**

View File

@ -501,8 +501,6 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mLiveRoomViewHolder.setUserList(data.getEnterRoomInfo().getUserlists()); mLiveRoomViewHolder.setUserList(data.getEnterRoomInfo().getUserlists());
//设置靓号 //设置靓号
mLiveRoomViewHolder.setAnchorGoodNumber(data.getLiveInfo().getGoodnum()); mLiveRoomViewHolder.setAnchorGoodNumber(data.getLiveInfo().getGoodnum());
//初始化天梯赛信息
mLiveRoomViewHolder.initRankPKInfo(String.valueOf(data.getLiveInfo().getUid()));
if (!StringUtil.isEmpty(mLiveBean.getGiftId())) { if (!StringUtil.isEmpty(mLiveBean.getGiftId())) {
mLiveRoomViewHolder.openGiftDialog(mLiveBean.getGiftId()); mLiveRoomViewHolder.openGiftDialog(mLiveBean.getGiftId());
} }
@ -625,6 +623,8 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
pkInfo = JSON.parseObject(GsonUtils.toJson(data.getEnterRoomInfo().getPkinfo())); pkInfo = JSON.parseObject(GsonUtils.toJson(data.getEnterRoomInfo().getPkinfo()));
if (pkInfo != null && pkInfo.getIntValue("drpk_status") != 1) { if (pkInfo != null && pkInfo.getIntValue("drpk_status") != 1) {
String pkUid = pkInfo.getString("pkuid"); String pkUid = pkInfo.getString("pkuid");
//初始化天梯赛信息
mLiveRoomViewHolder.initRankPKInfo(String.valueOf(data.getLiveInfo().getUid()),pkUid);
anyway = "1"; anyway = "1";
if (!TextUtils.isEmpty(pkUid) && !"0".equals(pkUid) && anyway.equals("0")) { if (!TextUtils.isEmpty(pkUid) && !"0".equals(pkUid) && anyway.equals("0")) {
if (mLiveSDK != Constants.LIVE_SDK_TX) { if (mLiveSDK != Constants.LIVE_SDK_TX) {