This commit is contained in:
aozhiwei 2024-10-24 16:04:15 +08:00
parent 6681aee2e6
commit 5d24365274

View File

@ -49,8 +49,8 @@ class BattleBoxService {
if ($currPhase < 1 || $currPhase > 2) { if ($currPhase < 1 || $currPhase > 2) {
return 0; return 0;
} }
$minNum = $maxLst0[$currPhase]; $minNum = $maxLst0[$currPhase - 1];
$maxNum = $maxLst1[$currPhase]; $maxNum = $maxLst1[$currPhase - 1];
error_log(json_encode(array( error_log(json_encode(array(
'mapNodeMeta' => $mapModeMeta, 'mapNodeMeta' => $mapModeMeta,
@ -72,6 +72,7 @@ class BattleBoxService {
'yesterDayDropLastTime' => $yesterDayDropLastTime, 'yesterDayDropLastTime' => $yesterDayDropLastTime,
'yesterDayDropTotal' => $yesterDayDropTotal, 'yesterDayDropTotal' => $yesterDayDropTotal,
'yesterDayAllocNum' => $yesterDayAllocNum, 'yesterDayAllocNum' => $yesterDayAllocNum,
'maxNum' => $maxNum,
))); )));
if ($yesterDayAllocNum <= 0) { if ($yesterDayAllocNum <= 0) {
$allocableNum = $maxNum; $allocableNum = $maxNum;