抱麦处理互娱房 7、8号麦位问题
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user