From 8ac3cd2786761a322d2f854ef59a5722d05f501a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 9 Oct 2024 15:15:26 +0800 Subject: [PATCH] 1 --- webapp/services/BattleBoxService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/services/BattleBoxService.php b/webapp/services/BattleBoxService.php index 3a78b019..6829b5b1 100644 --- a/webapp/services/BattleBoxService.php +++ b/webapp/services/BattleBoxService.php @@ -92,9 +92,11 @@ class BattleBoxService { } $allocableNum = min($maxNumLimit, $maxNum * $completionDegree); } - if ($allocableNum) { + if ($allocableNum > 0) { self::setDailyPhaseAllocNum($currPhase, myself()->_getNowDaySeconds(), $allocableNum); } + } else { + } if ($allocableNum > 0) { $lstVal = mt\Parameter::getListValue('battle_event_loot_per_game');