From 4c24e7187d4224a3ec767723fa30f686fb977e52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Fri, 24 Oct 2025 15:00:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Room.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/model/Room.php b/application/api/model/Room.php index 218b0af..a6ecceb 100644 --- a/application/api/model/Room.php +++ b/application/api/model/Room.php @@ -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;