定版之后bug修改

This commit is contained in:
2025-09-22 09:28:10 +08:00
parent 38cb41d57f
commit e53494c0f5
4 changed files with 25 additions and 7 deletions

View File

@@ -183,7 +183,10 @@ class BlindBoxTurntableGiftDraw extends Model
// 2. 获取可用礼物
$availableGifts = $this->getAvailableGifts($bag_data['id'], $room_id, $totalDrawTimes);
if (empty($availableGifts)) {
return ['code' => 0, 'msg' => '当前盲盒无可用礼物', 'data' => null];
$availableGifts = $this->resetPoolAndReload($bag_data['id'], $room_id, $periods + 1, 0);
if (empty($availableGifts)) {
return ['code' => 0, 'msg' => '重置奖池后仍无可用礼物', 'data' => null];
}
}
// 3. 预加载礼物信息(减少后续查询)