update 随机PK 修复对方主播正在PK时不会继续调用next接口

This commit is contained in:
zlzw 2022-12-10 14:59:21 +08:00
parent 3a75e24601
commit 01c657fdcb

View File

@ -604,6 +604,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
fragment.setArguments(bundle);
fragment.show(getSupportFragmentManager(), "LiveLinkMicListDialogFragment");
}
public void openFreePkWindow() {
FreePkDialogFragment fragment = new FreePkDialogFragment();
Bundle bundle = new Bundle();
@ -1075,6 +1076,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
JSONObject msg1 = buildLinkMicJSON();
linkMicAnchorApply(pkUid, stream, msg1.toString());
}
public JSONObject buildLinkMicJSON() {
JSONObject msg1 = new JSONObject();
msg1.put("uid", CommonAppConfig.getInstance().getUid());
@ -1122,6 +1124,9 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
} else {
ToastUtil.show("主播正在PK稍後再試");
if (RandomPkManager.getInstance().isRankModel()) {
RandomPkManager.getInstance().setPkStatus(RandomPkManager.PK_STATUS_REFUSE);
}
}
}
}