diff --git a/hwe/func_map.php b/hwe/func_map.php index 69ad6030..861afad0 100644 --- a/hwe/func_map.php +++ b/hwe/func_map.php @@ -60,6 +60,7 @@ function getWorldMap($req){ $session = Session::getInstance(); $userID = $session->userID; + $userGrade = $session->userGrade; $db = DB::db(); $gameStor = KVStorage::getStorage($db, 'game_env'); @@ -146,6 +147,13 @@ function getWorldMap($req){ array_map('\\sammo\\Util::toInt', [$r['city'], $r['level'], $r['state'], $r['nation'], $r['region'], $r['supply']]); } + if(($req->showMe || !$req->neutralView) && $userGrade >= 5){ + $spyInfo = []; + foreach($cityList as $tmpCity){ + $spyInfo[$tmpCity[0]] = 1; + } + } + return [ 'startYear' => $startYear, 'year' => $year,