game table을 KVStorage로 일부 대체

This commit is contained in:
2018-05-13 00:52:16 +09:00
parent 67ecd514a4
commit 9d6181ede1
36 changed files with 196 additions and 308 deletions
+4 -4
View File
@@ -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',