kvstorage 버그 수정

This commit is contained in:
2018-05-21 00:23:50 +09:00
parent d0778550ab
commit 7776b35cab
5 changed files with 25 additions and 10 deletions
+1 -1
View File
@@ -1496,7 +1496,7 @@ function updateOnline() {
}
//접속중인 국가
$gameStor->online = $onlinenume;
$gameStor->online = $onlinenum;
$gameStor->onlinenation = $onnationstr;
}
+1
View File
@@ -46,6 +46,7 @@ function processSpring() {
function processGoldIncome() {
$db = DB::db();
$connect=$db->get();
$gameStor = new KVStorage($db, 'game_env');
$admin = $gameStor->getValues(['year','month','gold_rate']);
$adminLog = [];
+2 -2
View File
@@ -140,10 +140,10 @@ class ChangeCity extends \sammo\Event\Action{
if($targetType == 'cities'){
if(is_numeric($this->targetArgs)){
return DB::db()->queryFirstColumn('SELECT city FROM city WHERE city IN (%ls)', $this->targetArgs);
return DB::db()->queryFirstColumn('SELECT city FROM city WHERE city IN %ls', $this->targetArgs);
}
else{
return DB::db()->queryFirstColumn('SELECT city FROM city WHERE name IN (%ls)', $this->targetArgs);
return DB::db()->queryFirstColumn('SELECT city FROM city WHERE name IN %ls', $this->targetArgs);
}
}