拍卖中不能下麦

This commit is contained in:
2025-12-04 21:56:26 +08:00
parent 0fd272bf37
commit a732eaa2d5

View File

@@ -182,6 +182,16 @@ class RoomPit extends Model
}else{ }else{
$pit_text = $pit_number . '号麦'; $pit_text = $pit_number . '号麦';
} }
if($roomtype == 2){
//获取拍卖位用户
if(Cache::get('auction_user_'.$room_id) == $user_id){
$auctioning = db::name('vs_room_auction')
->where(['room_id' => $room_id, 'status' => 2, 'user_id' => $user_id])->find();
if($auctioning) {
return ['code' => 0, 'msg' => '拍卖中不能能下麦', 'data' => null];
}
}
}
} }
$where['room_id'] = $room_id; $where['room_id'] = $room_id;