지도 뻗는 문제 해결. commandlist 일부 문제 해결

This commit is contained in:
2018-04-01 04:36:22 +09:00
parent 6edabd5bcb
commit d062fac671
2 changed files with 10 additions and 4 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
<?php
namespace sammo;
class MapRequest{
public $year;
public $month;
@@ -101,7 +101,7 @@ function getWorldMap($req){
if($myNation){
//굳이 타국 도시에 있는 아국 장수 리스트를 뽑을 이유가 없음. 일단 다 뽑자.
$shownByGeneralList =
array_map('Util::toInt',
array_map('\\sammo\\Util::toInt',
$db->queryFirstColumn('select distinct `city` from `general` where `nation` = %i',
$myNation));
}
@@ -112,7 +112,7 @@ function getWorldMap($req){
$cityList = [];
foreach($db->query('select `city`, `level`, `state`, `nation`, `region`, `supply` from `city`') as $r){
$cityList[] =
array_map('Util::toInt', [$r['city'], $r['level'], $r['state'], $r['nation'], $r['region'], $r['supply']]);
array_map('\\sammo\\Util::toInt', [$r['city'], $r['level'], $r['state'], $r['nation'], $r['region'], $r['supply']]);
}
return [