1:修改送礼物不选择礼物的时候,直接提示错误信息

2:修改小黑屋不能发布横屏数据
This commit is contained in:
2025-10-13 21:53:59 +08:00
parent adb72522e2
commit 88930b3b74
13 changed files with 82 additions and 43 deletions

View File

@@ -49,8 +49,8 @@ public class RoomSettingBean implements MultiItemEntity {
public static final int QXRoomSettingTypeRoomCloseEffects = 25;
/// 意见反馈
public static final int QXRoomSettingTypeRoomReport = 26;
public static final int QXRoomSettingTypeRoomFloatingScreen = 29;
public static final int QXRoomSettingTypeRoomFloatingRed = 30;
public static final int QXRoomSettingTypeRoomFloatingScreen = 29;//关闭飘屏
public static final int QXRoomSettingTypeRoomFloatingRed = 30;//红包
public static final int ITEM_TYPE_DEFAULT = 0;
public static final int ITEM_TYPE_WITH_ICON = 1;

View File

@@ -1817,7 +1817,18 @@ public class RetrofitClient {
BaseModel<RoomInfoResp> roomInfoRespBaseModel = response.body();
if (roomInfoRespBaseModel.getCode() == 1) {
observer.onNext(roomInfoRespBaseModel.getData());
} else {
}else if (roomInfoRespBaseModel.getCode() == 301){
ToastUtils.showShort(roomInfoRespBaseModel.getMsg());
try {
CommonAppContext.getInstance().clearLoginInfo();
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
}else if (roomInfoRespBaseModel.getCode() == 0){
ToastUtils.showShort(roomInfoRespBaseModel.getMsg());
observer.onNext(null);
}
else {
MessageListenerSingleton.getInstance().quitGroup(roomId);
}
}

View File

@@ -51,11 +51,11 @@ public class EnvironmentPrefs {
// }
// 默认使用生产环境
String envName = sharedPreferences.getString(KEY_ENV, EnvironmentEnum.TEST.name());
String envName = sharedPreferences.getString(KEY_ENV, EnvironmentEnum.PRODUCTION.name());
try {
return EnvironmentEnum.valueOf(envName);
} catch (IllegalArgumentException e) {
return EnvironmentEnum.TEST; // 出错时默认返回生产环境
return EnvironmentEnum.PRODUCTION; // 出错时默认返回生产环境
}
}
}