新需求-活动需求-盲盒转盘调通盘-巡乐会-调试

This commit is contained in:
2025-10-16 14:14:48 +08:00
parent 1e4729fbb7
commit 74c0e85178

View File

@@ -562,7 +562,7 @@ class BlindBoxTurntableGiftDrawWorld extends Model
// 按礼物ID分组统计需要减少的数量
$inventoryUpdates = [];
foreach ($precomputedResults as $result) {
$giftId = $result['gift_bag_detail']['id'];
$giftId = $result['gift_bag_detail']['id']??0;
$inventoryUpdates[$giftId] = ($inventoryUpdates[$giftId] ?? 0) + 1;
}