diff --git a/hwe/sammo/Command/General/che_징병.php b/hwe/sammo/Command/General/che_징병.php
index 011e657e..5fc86816 100644
--- a/hwe/sammo/Command/General/che_징병.php
+++ b/hwe/sammo/Command/General/che_징병.php
@@ -333,13 +333,6 @@ class che_징병 extends Command\GeneralCommand
];
}
- public function getJSPlugins(): array
- {
- return [
- 'recruitCrewForm'
- ];
- }
-
public function getForm(): string
{
$db = DB::db();
diff --git a/hwe/sammo/Command/General/che_첩보.php b/hwe/sammo/Command/General/che_첩보.php
index f1615be2..5a5f73f3 100644
--- a/hwe/sammo/Command/General/che_첩보.php
+++ b/hwe/sammo/Command/General/che_첩보.php
@@ -225,29 +225,14 @@ class che_첩보 extends Command\GeneralCommand
return true;
}
- public function getJSPlugins(): array
+ public function exportJSVars(): array
{
return [
- 'defaultSelectCityByMap'
+ 'mapTheme' => \sammo\getMapTheme(),
+ 'procRes' => [
+ 'cities' => \sammo\JSOptionsForCities(),
+ 'distanceList' => \sammo\JSCitiesBasedOnDistance($this->generalObj->getCityID(), 3),
+ ],
];
}
-
- public function getForm(): string
- {
- $currentCityID = $this->generalObj->getCityID();
- ob_start();
-?>
- = \sammo\getMapHtml() ?>
- 선택된 도시에 첩보를 실행합니다.
- 인접도시일 경우 많은 정보를 얻을 수 있습니다.
- 목록을 선택하거나 도시를 클릭하세요.
-
-
-
- = printCitiesBasedOnDistance($currentCityID, 3) ?>
- \sammo\getMapTheme(),
+ 'procRes' => [
+ 'cities' => \sammo\JSOptionsForCities(),
+ 'distanceList' => \sammo\JSCitiesBasedOnDistance($this->generalObj->getCityID(), 3),
+ ],
];
}
-
- public function getForm(): string
- {
- $currentCityID = $this->generalObj->getCityID();
- $commandName = $this->getName();
- $josaUl = JosaUtil::pick($commandName, '을');
-
- ob_start();
-?>
- = \sammo\getMapHtml() ?>
- 선택된 도시에 = $commandName ?>= $josaUl ?> 실행합니다.
- 목록을 선택하거나 도시를 클릭하세요.
-
-
-
- = printCitiesBasedOnDistance($currentCityID, 2) ?>
-
목록을 선택하거나 도시를 클릭하세요.
+