fix: 마지막 국가는 임관 불가능한 것처럼 나오는 버그 수정
This commit is contained in:
@@ -200,8 +200,8 @@ class che_임관 extends Command\GeneralCommand
|
|||||||
|
|
||||||
$rawNationList = Util::convertArrayToDict($db->query('SELECT nation,`name`,color,gennum,`power` FROM nation'), 'nation');
|
$rawNationList = Util::convertArrayToDict($db->query('SELECT nation,`name`,color,gennum,`power` FROM nation'), 'nation');
|
||||||
$scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg');
|
$scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg');
|
||||||
foreach ($scoutMsgs as $nationID => $scoutMsg) {
|
foreach ($scoutMsgs as $destNationID => $scoutMsg) {
|
||||||
$rawNationList[$nationID]['scoutmsg'] = $scoutMsg;
|
$rawNationList[$destNationID]['scoutmsg'] = $scoutMsg;
|
||||||
}
|
}
|
||||||
foreach ($rawNationList as $destNation) {
|
foreach ($rawNationList as $destNation) {
|
||||||
$testCommand = new static($generalObj, $this->env, ['destNationID' => $destNation['nation']]);
|
$testCommand = new static($generalObj, $this->env, ['destNationID' => $destNation['nation']]);
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ shuffle($nationList);
|
|||||||
$nationList = Util::convertArrayToDict($nationList, 'nation');
|
$nationList = Util::convertArrayToDict($nationList, 'nation');
|
||||||
//NOTE: join 안할것임
|
//NOTE: join 안할것임
|
||||||
$scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg');
|
$scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg');
|
||||||
foreach ($scoutMsgs as $nationID => $scoutMsg) {
|
foreach ($scoutMsgs as $destNationID => $scoutMsg) {
|
||||||
$nationList[$nationID]['scoutmsg'] = $scoutMsg;
|
$nationList[$destNationID]['scoutmsg'] = $scoutMsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
$characterAll = []; //선택용
|
$characterAll = []; //선택용
|
||||||
|
|||||||
+2
-2
@@ -24,8 +24,8 @@ shuffle($nationList);
|
|||||||
$nationList = Util::convertArrayToDict($nationList, 'nation');
|
$nationList = Util::convertArrayToDict($nationList, 'nation');
|
||||||
//NOTE: join 안할것임
|
//NOTE: join 안할것임
|
||||||
$scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg');
|
$scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg');
|
||||||
foreach ($scoutMsgs as $nationID => $scoutMsg) {
|
foreach ($scoutMsgs as $destNationID => $scoutMsg) {
|
||||||
$nationList[$nationID]['scoutmsg'] = $scoutMsg;
|
$nationList[$destNationID]['scoutmsg'] = $scoutMsg;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|||||||
+2
-2
@@ -44,8 +44,8 @@ $nationList = $db->query('SELECT nation,`name`,color,scout FROM nation');
|
|||||||
$nationList = Util::convertArrayToDict($nationList, 'nation');
|
$nationList = Util::convertArrayToDict($nationList, 'nation');
|
||||||
//NOTE: join 안할것임
|
//NOTE: join 안할것임
|
||||||
$scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg');
|
$scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg');
|
||||||
foreach ($scoutMsgs as $nationID => $scoutMsg) {
|
foreach ($scoutMsgs as $destNationID => $scoutMsg) {
|
||||||
$nationList[$nationID]['scoutmsg'] = $scoutMsg;
|
$nationList[$destNationID]['scoutmsg'] = $scoutMsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user