This commit is contained in:
aozhiwei 2024-10-08 19:06:02 +08:00
parent a0f694f819
commit 9a3f73c81b

View File

@ -30,7 +30,9 @@ class BattleBoxService {
$currPhase = self::getCurrentPhase(); $currPhase = self::getCurrentPhase();
$startTime = 0; $startTime = 0;
$endTime = 0; $endTime = 0;
$minNum = 0;
$maxNum = 0; $maxNum = 0;
$maxNumLimit = 0;
$completionDegree = 0; $completionDegree = 0;
$allocableNum = self::getDailyPhaseAllocNum($currPhase, myself()->_getNowDaySeconds()); $allocableNum = self::getDailyPhaseAllocNum($currPhase, myself()->_getNowDaySeconds());
@ -55,6 +57,7 @@ class BattleBoxService {
//没掉完 //没掉完
$completionDegree = $yesterDayDropTotal / $yesterDayAllocNum; $completionDegree = $yesterDayDropTotal / $yesterDayAllocNum;
} }
$allocableNum = min(5000, $maxNum * $completionDegree);
} }
if ($allocableNum) { if ($allocableNum) {
self::setDailyPhaseAllocNum($currPhase, $allocableNum); self::setDailyPhaseAllocNum($currPhase, $allocableNum);