抱麦处理互娱房 7、8号麦位问题

This commit is contained in:
2025-11-27 15:13:27 +08:00
parent df812236c4
commit 216a2c4010

View File

@@ -1028,8 +1028,13 @@ class RoomPit extends Model
return ['code' => 1, 'msg' => '操作成功', 'data' => null]; return ['code' => 1, 'msg' => '操作成功', 'data' => null];
} }
} }
//查询当前空麦位 if($room_type == 7){
$empty_pit = $this->getRoomNullPitWithout($room_id, [9, 10]); //查询当前空麦位
$empty_pit = $this->getRoomNullPitWithout($room_id, [7,8,9, 10]);
}else{
$empty_pit = $this->getRoomNullPitWithout($room_id, [9, 10]);
}
if(!$empty_pit){ if(!$empty_pit){
return ['code' => 0, 'msg' => '没有空麦位', 'data' => null]; return ['code' => 0, 'msg' => '没有空麦位', 'data' => null];
}else{ }else{