From 8a62c2f1eb84a9d4d7db2bf38645d0dfb9696208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Thu, 16 Oct 2025 21:44:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E9=9C=80=E6=B1=82-=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E9=9C=80=E6=B1=82-=E7=9B=B2=E7=9B=92=E8=BD=AC=E7=9B=98?= =?UTF-8?q?=E8=B0=83=E9=80=9A=E7=9B=98-=E5=B7=A1=E4=B9=90=E4=BC=9A-?= =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/model/BlindBoxTurntableGiftDrawWorld.php | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/application/api/model/BlindBoxTurntableGiftDrawWorld.php b/application/api/model/BlindBoxTurntableGiftDrawWorld.php index 766307b..17c68a7 100644 --- a/application/api/model/BlindBoxTurntableGiftDrawWorld.php +++ b/application/api/model/BlindBoxTurntableGiftDrawWorld.php @@ -66,6 +66,11 @@ class BlindBoxTurntableGiftDrawWorld extends Model return $precomputeResult; } $precomputedResults = $precomputeResult['data']['results']; + foreach ($precomputedResults as $key => $result) { + if ($result['gift'] == null) { + Log::record('数据报错-3:'.json_encode($result),"info"); + } + } $availableGiftss = $precomputeResult['data']['availableGifts']; $currentXlhPeriodsNum = $precomputeResult['data']['current_xlh_periods_num']; $addcurrentXlhPeriodsNum = $precomputeResult['data']['addcurrentXlhPeriodsNum']; @@ -320,17 +325,6 @@ class BlindBoxTurntableGiftDrawWorld extends Model $selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining); if ($selectedGift) { $gift = $giftInfoMap[$selectedGift['foreign_id']]; - if($gift == null){ - Log::record('数据报错:'.json_encode($giftInfoMap)."数据2".json_encode($selectedGift['foreign_id']),"info"); - } -// if (empty($gift)) { -// Log::record('数据报错:'.json_encode($selectedGift),"info"); -// $selectedGift = $this->selectGiftWithAliasMethod($aliasTableForRemaining); -// $gift = $giftInfoMap[$selectedGift['foreign_id']]; -// } -// if(!$gift){ -// throw new \Exception('礼物信息不存在'); -// } $precomputedResults[] = [ 'gift_user_id' => $giftUserId, 'gift_bag_detail' => $selectedGift,