getValues(['isUnited', 'npcMode', 'year', 'month', 'scenario', 'scenario_text', 'maxgeneral', 'turnTerm']);
-$game['maxUserCnt'] = $game['maxgeneral'];
-unset($game['maxgeneral']);
+$game_env = $gameStor->getValues(['isUnited', 'npcMode', 'year', 'month', 'scenario', 'scenario_text', 'maxgeneral', 'turnTerm']);
+$game_env['maxUserCnt'] = $game_env['maxgeneral'];
+unset($game_env['maxgeneral']);
$nationCnt = $db->queryFirstField('SELECT count(`nation`) from nation where `level` > 0');
$genCnt = $db->queryFirstField('SELECT count(`no`) from general where `npc` < 2');
$npcCnt = $db->queryFirstField('SELECT count(`no`) from general where `npc` >= 2');
-$game['scenario'] = $game['scenario_text'];
-$game['userCnt'] = $genCnt;
-$game['npcCnt'] = $npcCnt;
-$game['nationCnt'] = $nationCnt;
+$game_env['scenario'] = $game_env['scenario_text'];
+$game_env['userCnt'] = $genCnt;
+$game_env['npcCnt'] = $npcCnt;
+$game_env['nationCnt'] = $nationCnt;
$me = [];
@@ -75,6 +75,6 @@ if($general){
//TODO: 이를 표현하는 방법은 '이전 버전'의 serverListPost.php를 참고할 것.
Json::die([
- 'game'=>$game,
+ 'game'=>$game_env,
'me'=>$me?:null
]);
\ No newline at end of file
diff --git a/hwe/join.php b/hwe/join.php
index 76a45232..87de950c 100644
--- a/hwe/join.php
+++ b/hwe/join.php
@@ -47,9 +47,7 @@ $connect=$db->get();
=info(0)?>
getValues(['show_img_level','maxgeneral']);
$query = "select no from general where npc<2";
$result = MYDB_query($query, $connect) or Error("join ".MYDB_error($connect), "");
diff --git a/src/sammo/KVStorage.php b/src/sammo/KVStorage.php
index 8c19face..43be78db 100644
--- a/src/sammo/KVStorage.php
+++ b/src/sammo/KVStorage.php
@@ -154,6 +154,7 @@ class KVStorage{
$result = [];
$notExists = [];
+ //TODO: DB Select에서 as를 쓸 수 있으면 좋을 듯.
foreach($keys as $key){
if(!key_exists($key, $this->cacheData)){
$notExists[] = $key;