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