盲盒期数修改。

This commit is contained in:
2026-01-16 15:51:44 +08:00
parent 19bb1d742e
commit 53964b5398

View File

@@ -157,7 +157,6 @@ 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('重置奖池后仍无可用礼物');
}
@@ -211,6 +210,7 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model
}
}
$pan_total_draw_times = $this->getCachedPanDrawTimes($gift_bag_id,"clear");//总抽奖次数重置
$periods = $this->getCachedGiftBag($gift_bag_id)['periods']??$periods; // 获取新期数
}
// 再从新奖池中分配剩余所需礼物
if ($newGiftsNeeded > 0 && !empty($availableGifts)) {