kvstorage 버그 수정
This commit is contained in:
+1
-1
@@ -1496,7 +1496,7 @@ function updateOnline() {
|
||||
}
|
||||
|
||||
//접속중인 국가
|
||||
$gameStor->online = $onlinenume;
|
||||
$gameStor->online = $onlinenum;
|
||||
$gameStor->onlinenation = $onnationstr;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user