酒吧房上麦的时候 选择礼物和时间

This commit is contained in:
2026-01-06 19:37:41 +08:00
parent 71f24f26c8
commit 33bc871529
2 changed files with 16 additions and 10 deletions

View File

@@ -24,14 +24,17 @@ class RoomPit extends BaseCom
if($room_type == 0){
return V(0, '房间不存在', null);
}
$gift_id = input('gift_id', 0);//酒吧房上其他麦需要带礼物
if($room_type == 2){
$reslut = model('RoomSong')->apply_kpit($this->uid, $room_id,$pit_number);
}elseif($room_type == 11){
$gift_id = input('gift_id', 0);
if($gift_id == 0){
return V(0, '请选择礼物', null);
//9麦位10麦位 不做$gift_id校验
if($pit_number != 9 && $pit_number != 10){
if($gift_id == 0){
return V(0, '请选择礼物', null);
}
}
$reslut = model('RoomPit')->apply_pit_bar($this->uid, $room_id,$gift_id,$pit_number);
}else{
$reslut = model('RoomPit')->apply_pit($this->uid, $room_id,$pit_number);