From 41ab453c086159df34d6cc7a27b13f81953355d6 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 8 Oct 2024 15:20:56 +0800 Subject: [PATCH] 1 --- webapp/services/BattleBoxService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/services/BattleBoxService.php b/webapp/services/BattleBoxService.php index 8bc3e2b2..2c54974b 100644 --- a/webapp/services/BattleBoxService.php +++ b/webapp/services/BattleBoxService.php @@ -22,7 +22,7 @@ class BattleBoxService { $alreadyAllocNum = self::getDailyPhaseAlreadyAllocNum($currPhase, myself()->_getNowDaySeconds()); if ($allocableNum > 0) { $lstVal = mt\Parameter::getListValue('battle_event_loot_per_game'); - if (!$allocableNum <= 0 || empty($lstVal) || count($lstVal) < 2) { + if (!($allocableNum <= 0 || empty($lstVal) || count($lstVal) < 2)) { $rnd = rand($lstVal[0], $lstVal[1]); if ($rnd > 0) { $boxNum = min($rnd, $allocableNum);