버그 수정

This commit is contained in:
2019-02-24 19:41:00 +09:00
parent ff654df997
commit 9bdc34dc42
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -332,7 +332,7 @@ if($btn == "임명" && $level >= 2 && $level <= 4 && $citylist > 0) {
//기존 자리 공석으로
$db->update('city', [
$genlv=>0
], 'city = %i AND nation %i', $citylist , $general['nation']);
], 'city = %i AND nation = %i', $citylist , $general['nation']);
}
if($genlist != 0) {
$valid = 0;
+1 -1
View File
@@ -12,7 +12,7 @@ $result = [
$session = Session::requireGameLogin([])->setReadOnly();
$userID = Session::getUserID();
$generalInfo = DB::db()->queryFirstRow('SELECT `no`, `nation`, `level`, penalty, permission from `general` where `owner`=%i', $userID);
$generalInfo = DB::db()->queryFirstRow('SELECT `no`, `nation`, `level`, belong, penalty, permission from `general` where `owner`=%i', $userID);
if(!$generalInfo){
Json::die($result);
}