fix: 마지막 국가는 임관 불가능한 것처럼 나오는 버그 수정

This commit is contained in:
2022-01-02 23:01:46 +09:00
parent e23e36cbfa
commit bdd574161e
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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']]);
+2 -2
View File
@@ -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 = []; //선택용
+2 -2
View File
@@ -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;
}
?>
<!DOCTYPE html>
+2 -2
View File
@@ -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;
}