新需求-活动需求-盲盒转盘调通盘-巡乐会-调试
This commit is contained in:
@@ -562,7 +562,7 @@ class BlindBoxTurntableGiftDrawWorld extends Model
|
|||||||
// 按礼物ID分组统计需要减少的数量
|
// 按礼物ID分组统计需要减少的数量
|
||||||
$inventoryUpdates = [];
|
$inventoryUpdates = [];
|
||||||
foreach ($precomputedResults as $result) {
|
foreach ($precomputedResults as $result) {
|
||||||
$giftId = $result['gift_bag_detail']['id'];
|
$giftId = $result['gift_bag_detail']['id']??0;
|
||||||
$inventoryUpdates[$giftId] = ($inventoryUpdates[$giftId] ?? 0) + 1;
|
$inventoryUpdates[$giftId] = ($inventoryUpdates[$giftId] ?? 0) + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user