game table 이전

This commit is contained in:
2018-05-13 01:31:28 +09:00
parent 166eafe4ee
commit fab0495a39
5 changed files with 27 additions and 33 deletions
+1 -3
View File
@@ -153,9 +153,7 @@ function pushWorldHistory(array $history, $year=null, $month=null) {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game_env');
if($year === null || $month === null){
$game = $db->queryFirstRow('SELECT year, month FROM game LIMIT 1');
$year = $game['year'];
$month = $game['month'];
list($year, $month) = $gameStor->getValuesAsArray(['year', 'month']);
}
$request = array_map(function($text) use ($year, $month) {
return ['year'=>$year, 'month'=>$month, 'text'=>$text];