From 9bdc34dc4252b11b5781aa814d7ba081d9a7fafc Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 24 Feb 2019 19:41:00 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/c_myBossInfo.php | 2 +- hwe/j_basic_info.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/c_myBossInfo.php b/hwe/c_myBossInfo.php index d177f9a3..b821ce71 100644 --- a/hwe/c_myBossInfo.php +++ b/hwe/c_myBossInfo.php @@ -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; diff --git a/hwe/j_basic_info.php b/hwe/j_basic_info.php index b7fccd3a..ac458e7c 100644 --- a/hwe/j_basic_info.php +++ b/hwe/j_basic_info.php @@ -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); }