From 8ea06cd81d33255d8efe6804d57f70523e42479f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Thu, 25 Sep 2025 00:05:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=94=80=E6=B5=81=E7=A8=8B=E6=94=B9?= =?UTF-8?q?=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Room.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/application/api/model/Room.php b/application/api/model/Room.php index eff8500..c5080dc 100644 --- a/application/api/model/Room.php +++ b/application/api/model/Room.php @@ -1068,9 +1068,14 @@ class Room extends Model db::name('vs_room_visitor')->where(['room_id' => $room_id, 'user_id' => $user_id])->delete(); //房间的模式 $res = model('api/Room')->get_room_label($room_id); + if($res['code'] != 1){ + $room_label = 1; + $room_type = 1; + }else{ + $room_label = $res['data']['label_id']; + $room_type = $res['data']['type_id']; + } - $room_label = $res['data']['label_id']; - $room_type = $res['data']['type_id']; $apply_type = 0; if($room_label == 1 && ($room_type == 1 || $room_type == 3 || $room_type == 4 || $room_type == 8)){ $apply_type = 1;