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;