定版之后bug修改
This commit is contained in:
@@ -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. 预加载礼物信息(减少后续查询)
|
||||
|
||||
Reference in New Issue
Block a user