From b5a9e52c437ac5a45fc260c6014cbf981fd6d64e Mon Sep 17 00:00:00 2001 From: Hide_D Date: Thu, 3 Aug 2023 13:35:55 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9D=B8=EC=82=AC=EB=B6=80=EB=8A=94=20G?= =?UTF-8?q?eneralLite=EA=B0=80=20=EC=95=84=EB=8B=88=EB=9D=BC=20General=20?= =?UTF-8?q?=ED=95=84=EC=9A=94=20-=20=EC=B6=94=EB=B0=A9=EC=8B=9C=20?= =?UTF-8?q?=EB=AA=85=EC=84=B1=20=EA=B9=8E=EC=9D=B4=EB=8A=94=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=EB=95=8C=EB=AC=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/j_myBossInfo.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/hwe/j_myBossInfo.php b/hwe/j_myBossInfo.php index 5027726b..8edb9a0f 100644 --- a/hwe/j_myBossInfo.php +++ b/hwe/j_myBossInfo.php @@ -47,14 +47,9 @@ if($destGeneralID==0){ $general->setVar('nation', $nationID); } else{ - $general = GeneralLite::createObjFromDB($destGeneralID, [ - 'name', 'leadership', 'strength', 'intel', 'gold','rice', - 'troop','officer_level','npc','picture','imgsvr', - 'permission','penalty','belong', 'crewtype', - 'experience', 'dedication', 'betray', 'dedlevel', 'explevel', 'makelimit', 'aux', - ], GeneralLiteQueryMode::Lite); + $general = General::createObjFromDB($destGeneralID); - if($general instanceof DummyGeneralLite){ + if($general instanceof DummyGeneral){ Json::die([ 'result'=>false, 'reason'=>'올바르지 않은 장수입니다.' @@ -76,7 +71,7 @@ if($officerLevel == 12){ ]); } -function do수뇌임명(GeneralLite $general, int $targetOfficerLevel):?string{ +function do수뇌임명(General $general, int $targetOfficerLevel):?string{ $generalID = $general->getID(); $nationID = $general->getNationID();