diff --git a/application/api/model/RoomPit.php b/application/api/model/RoomPit.php index 4c1645f..4919fd2 100644 --- a/application/api/model/RoomPit.php +++ b/application/api/model/RoomPit.php @@ -1028,8 +1028,13 @@ class RoomPit extends Model return ['code' => 1, 'msg' => '操作成功', 'data' => null]; } } - //查询当前空麦位 - $empty_pit = $this->getRoomNullPitWithout($room_id, [9, 10]); + if($room_type == 7){ + //查询当前空麦位 + $empty_pit = $this->getRoomNullPitWithout($room_id, [7,8,9, 10]); + }else{ + $empty_pit = $this->getRoomNullPitWithout($room_id, [9, 10]); + } + if(!$empty_pit){ return ['code' => 0, 'msg' => '没有空麦位', 'data' => null]; }else{