From bdd574161ec3b3eef0b29827caba7f110fb44ebd Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 2 Jan 2022 23:01:46 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A7=88=EC=A7=80=EB=A7=89=20=EA=B5=AD?= =?UTF-8?q?=EA=B0=80=EB=8A=94=20=EC=9E=84=EA=B4=80=20=EB=B6=88=EA=B0=80?= =?UTF-8?q?=EB=8A=A5=ED=95=9C=20=EA=B2=83=EC=B2=98=EB=9F=BC=20=EB=82=98?= =?UTF-8?q?=EC=98=A4=EB=8A=94=20=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/sammo/Command/General/che_임관.php | 4 ++-- hwe/select_general_from_pool.php | 4 ++-- hwe/select_npc.php | 4 ++-- hwe/v_join.php | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hwe/sammo/Command/General/che_임관.php b/hwe/sammo/Command/General/che_임관.php index dc54b8ac..c50447c5 100644 --- a/hwe/sammo/Command/General/che_임관.php +++ b/hwe/sammo/Command/General/che_임관.php @@ -200,8 +200,8 @@ class che_임관 extends Command\GeneralCommand $rawNationList = Util::convertArrayToDict($db->query('SELECT nation,`name`,color,gennum,`power` FROM nation'), 'nation'); $scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg'); - foreach ($scoutMsgs as $nationID => $scoutMsg) { - $rawNationList[$nationID]['scoutmsg'] = $scoutMsg; + foreach ($scoutMsgs as $destNationID => $scoutMsg) { + $rawNationList[$destNationID]['scoutmsg'] = $scoutMsg; } foreach ($rawNationList as $destNation) { $testCommand = new static($generalObj, $this->env, ['destNationID' => $destNation['nation']]); diff --git a/hwe/select_general_from_pool.php b/hwe/select_general_from_pool.php index 72743912..0b5d4aa4 100644 --- a/hwe/select_general_from_pool.php +++ b/hwe/select_general_from_pool.php @@ -27,8 +27,8 @@ shuffle($nationList); $nationList = Util::convertArrayToDict($nationList, 'nation'); //NOTE: join 안할것임 $scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg'); -foreach ($scoutMsgs as $nationID => $scoutMsg) { - $nationList[$nationID]['scoutmsg'] = $scoutMsg; +foreach ($scoutMsgs as $destNationID => $scoutMsg) { + $nationList[$destNationID]['scoutmsg'] = $scoutMsg; } $characterAll = []; //선택용 diff --git a/hwe/select_npc.php b/hwe/select_npc.php index 90e44f28..573f09d9 100644 --- a/hwe/select_npc.php +++ b/hwe/select_npc.php @@ -24,8 +24,8 @@ shuffle($nationList); $nationList = Util::convertArrayToDict($nationList, 'nation'); //NOTE: join 안할것임 $scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg'); -foreach ($scoutMsgs as $nationID => $scoutMsg) { - $nationList[$nationID]['scoutmsg'] = $scoutMsg; +foreach ($scoutMsgs as $destNationID => $scoutMsg) { + $nationList[$destNationID]['scoutmsg'] = $scoutMsg; } ?> diff --git a/hwe/v_join.php b/hwe/v_join.php index a405877d..51e4759c 100644 --- a/hwe/v_join.php +++ b/hwe/v_join.php @@ -44,8 +44,8 @@ $nationList = $db->query('SELECT nation,`name`,color,scout FROM nation'); $nationList = Util::convertArrayToDict($nationList, 'nation'); //NOTE: join 안할것임 $scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg'); -foreach ($scoutMsgs as $nationID => $scoutMsg) { - $nationList[$nationID]['scoutmsg'] = $scoutMsg; +foreach ($scoutMsgs as $destNationID => $scoutMsg) { + $nationList[$destNationID]['scoutmsg'] = $scoutMsg; }