This commit is contained in:
aozhiwei 2024-10-08 15:40:16 +08:00
parent 7f7afec29e
commit 707dea9b00

View File

@ -18,8 +18,14 @@ class BattleBoxService {
}
$boxNum = 0;
$currPhase = self::getCurrentPhase();
$startTime = 0;
$endTime = 0;
$allocableNum = self::getDailyPhaseAllocNum($currPhase, myself()->_getNowDaySeconds());
$alreadyAllocNum = self::getDailyPhaseAlreadyAllocNum($currPhase, myself()->_getNowDaySeconds());
if ($allocableNum <= 0) {
$yesterDayLastDropTime = self::getDailyPhaseDropLastTime($currPhase, myself()->_getNowDaySeconds());
$yesterDayDropTotal = self::getDailyPhaseDropTotalNum($currPhase, myself()->_getNowDaySeconds());
}
if ($allocableNum > 0) {
$lstVal = mt\Parameter::getListValue('battle_event_loot_per_game');
if (!($allocableNum <= 0 || empty($lstVal) || count($lstVal) < 2)) {