From 3837e5a033f06b2b22b798b8358acd98bf1a7e95 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 20 Aug 2024 16:48:33 +0800 Subject: [PATCH] 1 --- webapp/controller/BattleController.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index bff26aa5..b684df94 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -1176,6 +1176,12 @@ class BattleController extends BaseAuthedController { public function requestAllocBoxNum() { + if (!myself()->_switchIsOpen('bigEventBoxDrop')) { + myself()->_rspData(array( + 'box_num' => 0 + )); + return; + } $roomUuid = getReqVal('room_uuid', ''); $row = SqlHelper::ormSelectOne( $this->_getSelfMysql(),