From 9a3f73c81bc8058d3d8903e2d4ade1c079dad6f1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 8 Oct 2024 19:06:02 +0800 Subject: [PATCH] 1 --- webapp/services/BattleBoxService.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webapp/services/BattleBoxService.php b/webapp/services/BattleBoxService.php index 002f0d75..c53a037c 100644 --- a/webapp/services/BattleBoxService.php +++ b/webapp/services/BattleBoxService.php @@ -30,7 +30,9 @@ class BattleBoxService { $currPhase = self::getCurrentPhase(); $startTime = 0; $endTime = 0; + $minNum = 0; $maxNum = 0; + $maxNumLimit = 0; $completionDegree = 0; $allocableNum = self::getDailyPhaseAllocNum($currPhase, myself()->_getNowDaySeconds()); @@ -55,6 +57,7 @@ class BattleBoxService { //没掉完 $completionDegree = $yesterDayDropTotal / $yesterDayAllocNum; } + $allocableNum = min(5000, $maxNum * $completionDegree); } if ($allocableNum) { self::setDailyPhaseAllocNum($currPhase, $allocableNum);