bug修改 盲盒转盘礼物重复推送

This commit is contained in:
2025-09-17 09:58:35 +08:00
parent 8e0b51eae6
commit 0b9f5e88e6
2 changed files with 5 additions and 5 deletions

View File

@@ -869,7 +869,7 @@ class BlindBoxTurntableGift extends Model
if(empty($room_pan)){
return ['code' => 0, 'msg' => '当前房间未配置抽奖礼物,请联系管理员', 'data' => []];
}
$total_remaining = $room_pan['remaining_number'];
$total_remaining = db::name("vs_room_pan")->where(['room_id'=>$room_id,'gift_bag_id'=>$gift_bag_id])->sum('remaining_number');
$total_draw_times = $total_quantity - $total_remaining;
//随机获取一个礼物
$where = [