From de378a8286407ea477b1a4241b42e9344582b041 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 9 Jul 2024 13:35:45 +0800 Subject: [PATCH] 1 --- webapp/controller/BattleController.class.php | 7 ++-- webapp/mt/MapMode.php | 35 +++++++++++++++++++- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index 4786c182..c30edb15 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -1123,8 +1123,11 @@ class BattleController extends BaseAuthedController { private function checkTicket($r, $customData, $mapModeMeta) { - if ($mapModeMeta['mapMode'] == 501) { - error_log("checkTick error :501"); + if (!mt\MapMode::checkLimitTime($mapModeMeta)) { + error_log(json_encode(array( + 'msg' => 'MapMode::CheckLimitTime error', + 'meta' => $mapModeMeta + ))); return false; } $itemId = $mapModeMeta['admission_item_id']; diff --git a/webapp/mt/MapMode.php b/webapp/mt/MapMode.php index 0d8d87e5..e468ec0b 100644 --- a/webapp/mt/MapMode.php +++ b/webapp/mt/MapMode.php @@ -1,8 +1,9 @@