错误处理
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user