농지 개간, 상업 투자를 외부 커맨드로 연결

This commit is contained in:
2018-09-14 02:35:27 +09:00
parent 8c491201df
commit a1102599d7
3 changed files with 20 additions and 45 deletions
+5 -1
View File
@@ -34,7 +34,7 @@ abstract class BaseCommand{
protected $logger;
public function __construct(General $generalObj, array $env, $arg){
public function __construct(General $generalObj, array $env, $arg = null){
$this->generalObj = $generalObj;
$this->logger = $generalObj->getLogger();
$this->env = $env;
@@ -50,9 +50,13 @@ abstract class BaseCommand{
return;
}
$this->city = $db->queryFirstRow('SELECT * FROM city WHERE city=%i', $this->generalObj->getVar('city'));
$this->generalObj->setRawCity($this->city);
return;
}
$this->city = $db->queryFirstRow('SELECT %lb FROM city WHERE city=%i', $args, $this->generalObj->getVar('city'));
if($this->generalObj->getRawCity() === null){
$this->generalObj->setRawCity($this->city);
}
}
protected function setNation(?array $args = null){