game table을 KVStorage로 일부 대체
This commit is contained in:
+4
-4
@@ -56,10 +56,10 @@ function getWorldMap($req){
|
||||
$db = DB::db();
|
||||
$gameStor = KVStorage::getStorage($db, 'game_env');
|
||||
|
||||
$game = $db->queryFirstRow('select `startyear`, `year`, `month` from `game` where `no` = 1');
|
||||
$startYear = Util::toInt($game['startyear']);
|
||||
$year = Util::toInt($game['year']);
|
||||
$month = Util::toInt($game['month']);
|
||||
list($startYear, $year, $month) = $gameStor->getValuesAsArray(['startyear', 'year', 'month']);
|
||||
$startYear = Util::toInt($startYear);
|
||||
$year = Util::toInt($year);
|
||||
$month = Util::toInt($month);
|
||||
|
||||
$general = $db->queryFirstRow(
|
||||
'select `no`, `city`, `nation` from `general` where `owner`=%i',
|
||||
|
||||
Reference in New Issue
Block a user