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);