From 60d04b1bdf23be13f6c97853ded1d3df9ce332e6 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 10 May 2020 04:18:12 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=9C=EB=A0=B9=EC=9D=84=20=EC=9C=84?= =?UTF-8?q?=ED=95=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/Nation/che_발령.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/hwe/sammo/Command/Nation/che_발령.php b/hwe/sammo/Command/Nation/che_발령.php index 480848b2..7b3db4de 100644 --- a/hwe/sammo/Command/Nation/che_발령.php +++ b/hwe/sammo/Command/Nation/che_발령.php @@ -173,7 +173,10 @@ class che_발령 extends Command\NationCommand{ { $db = DB::db(); - $destRawGenerals = $db->query('SELECT no,name,officer_level,npc,gold,rice FROM general WHERE nation = %i ORDER BY npc,binary(name)',$this->generalObj->getNationID()); + $nationID = $this->generalObj->getNationID(); + + $troops = Util::convertArrayToDict($db->query('SELECT * FROM troop WHERE nation=%i', $nationID), 'troop_leader'); + $destRawGenerals = $db->query('SELECT no,name,officer_level,npc,gold,rice,leadership,strength,intel,city,crew,train,atmos,troop FROM general WHERE nation = %i ORDER BY npc,binary(name)',$nationID); $destGeneralList = []; foreach($destRawGenerals as $destGeneral){ $nameColor = \sammo\getNameColor($destGeneral['npc']); @@ -186,13 +189,9 @@ class che_발령 extends Command\NationCommand{ $name = "*{$name}*"; } - $destGeneralList[] = [ - 'no'=>$destGeneral['no'], - 'color'=>$nameColor, - 'name'=>$name, - 'gold'=>$destGeneral['gold'], - 'rice'=>$destGeneral['rice'] - ]; + $destGeneral['name'] = $name; + $destGeneral['color'] = $nameColor; + $destGeneralList[] = $destGeneral; } ob_start(); ?> @@ -202,7 +201,10 @@ class che_발령 extends Command\NationCommand{ 목록을 선택하거나 도시를 클릭하세요.