From 19bb1d742e2bf335771130bb0f52c2fafc183b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Fri, 16 Jan 2026 15:32:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B2=E7=9B=92=E6=9C=9F=E6=95=B0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/BlindBoxTurntableGiftDrawWorldNew.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php b/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php index d770f10e..ce4ded8e 100644 --- a/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php +++ b/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php @@ -147,6 +147,7 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model if (empty($availableGifts) ||$pan_total_remaining ==0) { //重置奖池 $availableGifts = $this->resetPoolAndReload($gift_bag_id); + $periods = $this->getCachedGiftBag($gift_bag_id)['periods']??$periods; // 获取新期数 if (empty($availableGifts)) { throw new \Exception('重置奖池后仍无可用礼物'); } @@ -156,6 +157,7 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model $remaining_available_gifts = $availableGifts; // 保存当前剩余礼物作为上期剩余 //重置奖池 $availableGifts = $this->resetPoolAndReload($gift_bag_id); + $periods = $this->getCachedGiftBag($gift_bag_id)['periods']??$periods; // 获取新期数 if (empty($availableGifts)) { throw new \Exception('重置奖池后仍无可用礼物'); } @@ -227,6 +229,7 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model if(!$selectedGift){ //重置奖池 $availableGifts = $this->resetPoolAndReload($gift_bag_id); + $periods = $this->getCachedGiftBag($gift_bag_id)['periods']??$periods; // 获取新期数 if (empty($availableGifts)) { throw new \Exception('重置奖池后仍无可用礼物'); } @@ -1753,6 +1756,7 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model if (!$selected_gift) { $gift_bag_detail = $this->resetPoolAndReload($gift_bag_id); + $periods = $this->getCachedGiftBag($gift_bag_id)['periods']??$periods; // 获取新期数 $selected_gift = $this->selectGiftFromAvailable($gift_bag_detail); if (!$selected_gift) {