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

This commit is contained in:
2025-10-16 21:59:35 +08:00
parent 8a62c2f1eb
commit 92831bcd13

View File

@@ -66,11 +66,6 @@ class BlindBoxTurntableGiftDrawWorld extends Model
return $precomputeResult; return $precomputeResult;
} }
$precomputedResults = $precomputeResult['data']['results']; $precomputedResults = $precomputeResult['data']['results'];
foreach ($precomputedResults as $key => $result) {
if ($result['gift'] == null) {
Log::record('数据报错-3:'.json_encode($result),"info");
}
}
$availableGiftss = $precomputeResult['data']['availableGifts']; $availableGiftss = $precomputeResult['data']['availableGifts'];
$currentXlhPeriodsNum = $precomputeResult['data']['current_xlh_periods_num']; $currentXlhPeriodsNum = $precomputeResult['data']['current_xlh_periods_num'];
$addcurrentXlhPeriodsNum = $precomputeResult['data']['addcurrentXlhPeriodsNum']; $addcurrentXlhPeriodsNum = $precomputeResult['data']['addcurrentXlhPeriodsNum'];
@@ -367,7 +362,9 @@ class BlindBoxTurntableGiftDrawWorld extends Model
for ($i = 0; $i < $userNewAllocation; $i++) { for ($i = 0; $i < $userNewAllocation; $i++) {
$selectedGift = $this->selectGiftWithAliasMethod($aliasTableForNew); $selectedGift = $this->selectGiftWithAliasMethod($aliasTableForNew);
if ($selectedGift) { if ($selectedGift) {
$gift = $giftInfoMap[$selectedGift['foreign_id']] ?? null; $giftInfoMap = $this->preloadGiftInfo($availableGifts);
$gift = $giftInfoMap[$selectedGift['foreign_id']];
if($gift)
$precomputedResults[] = [ $precomputedResults[] = [
'gift_user_id' => $giftUserId, 'gift_user_id' => $giftUserId,
'gift_bag_detail' => $selectedGift, 'gift_bag_detail' => $selectedGift,