1:修改当在游戏房间的时候,不能点击其他房间进入,

2:在进入房间后,退出上一个房间的各种调用
This commit is contained in:
2025-12-01 18:41:14 +08:00
parent be60810221
commit 980ec43e6c
7 changed files with 150 additions and 52 deletions

View File

@@ -40,6 +40,9 @@ public class RoomInfoResp implements Serializable {
private SingerInfo singer_info;
private SignInfo sign_info;
private String room_id="";
private String msg="";
//弹出麦位操作弹出
public boolean isWheatManager() {
//是管理员且在1或者9号麦当时房主模式时2号麦也有管理权限

View File

@@ -137,6 +137,15 @@ public class ConfirmDialog extends Dialog {
// 隐藏取消按钮
btnNegative.setVisibility(View.GONE);
}
//判断是否需要显示确认按钮
if (positiveButtonText != null && !positiveButtonText.isEmpty()) {
btnPositive.setText(positiveButtonText);
btnPositive.setVisibility(View.VISIBLE);
}else {
// 隐藏确认按钮
btnPositive.setVisibility(View.GONE);
}
// 倒计时逻辑
if (isCountdownEnabled && countdownSeconds > 0) {
startCountdown(btnNegative);

View File

@@ -2249,6 +2249,8 @@ public class RetrofitClient {
} else if (roomInfoRespBaseModel.getCode() == 0) {
ToastUtils.showShort(roomInfoRespBaseModel.getMsg());
observer.onNext(null);
}else if (roomInfoRespBaseModel.getCode() == 202){
observer.onNext(roomInfoRespBaseModel.getData());
} else {
MessageListenerSingleton.getInstance().quitGroup(roomId);
}