动态打赏

This commit is contained in:
2026-01-08 17:06:55 +08:00
parent d5c597db92
commit b7f782db4a
2 changed files with 5 additions and 2 deletions

View File

@@ -30,7 +30,9 @@ class RoomPit extends BaseCom
}elseif($room_type == 11){
//9麦位10麦位 不做$gift_id校验
if($pit_number != 9 && $pit_number != 10){
if($gift_id == 0){
//有麦位就是换麦
$pit_infos = db::name('vs_room_pit')->where(['room_id' => $room_id, 'user_id' => $this->uid])->value('pit_number')??0;
if($gift_id == 0 && $pit_infos == 0){
return V(0, '请选择礼物', null);
}
}