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

This commit is contained in:
2025-10-16 21:09:15 +08:00
parent dbe7a83aef
commit 21890b3fcd

View File

@@ -319,10 +319,11 @@ class BlindBoxTurntableGiftDrawWorld extends Model
for ($i = 0; $i < $userRemainingAllocation; $i++) {
$selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining);
if ($selectedGift) {
$gift = $giftInfoMap[$selectedGift['foreign_id']] ?? null;
$gift = $giftInfoMap[$selectedGift['foreign_id']];
if (empty($gift)) {
Log::record('数据报错:'.json_encode($selectedGift),"info");
$selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining);
$gift = $giftInfoMap[$selectedGift['foreign_id']] ?? null;
$gift = $giftInfoMap[$selectedGift['foreign_id']];
}
if(!$gift){
throw new \Exception('礼物信息不存在');