错误处理

This commit is contained in:
2025-10-24 15:00:56 +08:00
parent 07a0330196
commit 4c24e7187d

View File

@@ -1079,8 +1079,8 @@ class Room extends Model
//房间的模式
$res = model('api/Room')->get_room_label($room_id);
$room_label = $res['data']['label_id'];
$room_type = $res['data']['type_id'];
$room_label = $res['data']['label_id'] ?? 0;
$room_type = $res['data']['type_id'] ?? 0;
$apply_type = 0;
if($room_label == 1 && ($room_type == 1 || $room_type == 3 || $room_type == 4 || $room_type == 8)){
$apply_type = 1;