diff --git a/webapp/mt/MapMode.php b/webapp/mt/MapMode.php index 3cc9ab11..23a369e5 100644 --- a/webapp/mt/MapMode.php +++ b/webapp/mt/MapMode.php @@ -128,7 +128,19 @@ class MapMode self::traverseMeta(function ($meta) use (&$mapModeMeta, &$phase, &$startTime, &$endTime) { if ($meta['mapMode'] == self::TREASURE_BOX_MODE) { - if (self::configedDailyTimeLimit1($meta) || self::configedDailyTimeLimit2($meta)) { + if (self::configedDailyTimeLimit1($meta)) { + $mapNodeMeta = $meta; + $phase = 1; + $startTime = $meta['daily_open_time']; + $endTime = $meta['daily_end_time']; + return false; + } + if (self::configedDailyTimeLimit2($meta)) { + $mapNodeMeta = $meta; + $phase = 2; + $startTime = $meta['daily_open_time_2']; + $endTime = $meta['daily_end_time_2']; + return false; } } return true;