盲盒期数修改。

This commit is contained in:
2026-01-16 15:32:23 +08:00
parent 29e35435a6
commit 19bb1d742e

View File

@@ -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) {