From b41da02aa4d510c7f41f0436f0d34db97e4ba725 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 9 Jul 2024 00:55:07 +0800 Subject: [PATCH] 1 --- webapp/controller/BattleController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index f8835df3..260cffba 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -1121,6 +1121,9 @@ class BattleController extends BaseAuthedController { private function checkTicket($r, $customData, $mapModeMeta) { + if ($mapModeMeta['map_mode'] == 501) { + return false; + } $itemId = $mapModeMeta['admission_item_id']; if (empty($itemId)) { return true; @@ -1128,9 +1131,6 @@ class BattleController extends BaseAuthedController { if (!$mapModeMeta['is_open']) { return false; } - if ($mapModeMeta['map_mode'] == 501) { - return false; - } $roomUuid = $customData['room_uuid']; if ($r->get(DEC_BATTLE_TICKET . $roomUuid)) { return true;