From c443e669ea1f353bcf04e0fad56c1570ef1c0c6f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 21 Aug 2024 14:26:36 +0800 Subject: [PATCH] 1 --- webapp/controller/OtherController.class.php | 5 ----- webapp/mt/MapMode.php | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/webapp/controller/OtherController.class.php b/webapp/controller/OtherController.class.php index 801e4535..1f61f301 100644 --- a/webapp/controller/OtherController.class.php +++ b/webapp/controller/OtherController.class.php @@ -362,11 +362,6 @@ class OtherController extends BaseAuthedController { $temp['daily_end_time_2'] = strtotime($modeMeta['daily_end_time_2']); $temp['state2'] = $nowTimeOffset >= $dailyOpenTimeOffset && $nowTimeOffset <= $dailyEndTimeOffset ? 1 : 0; } - - array_push( - $modeList, - $temp - ); $isOpen = mt\MapMode::isOpen($modeMeta); if ($isOpen) { diff --git a/webapp/mt/MapMode.php b/webapp/mt/MapMode.php index 17f90c81..7ab79385 100644 --- a/webapp/mt/MapMode.php +++ b/webapp/mt/MapMode.php @@ -48,6 +48,7 @@ class MapMode } } break; + /* case 2: { if ($meta['mapMode'] == self::TREASURE_BOX_MODE) { @@ -57,7 +58,7 @@ class MapMode } } } - break; + break;*/ default: { return true;