From eb14c5f8bc02f671c1f6bbb50336061056e877c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Wed, 18 Sep 2024 19:22:12 +0900 Subject: [PATCH] Automation init...3 --- app/Controllers/CommonController.php | 4 ++-- app/Libraries/CommonLibrary.php | 4 ++-- app/Libraries/MyCrawler/Mangboard/InvenCrawler.php | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/Controllers/CommonController.php b/app/Controllers/CommonController.php index b8f17be..1ba4846 100644 --- a/app/Controllers/CommonController.php +++ b/app/Controllers/CommonController.php @@ -8,12 +8,12 @@ abstract class CommonController extends BaseController { private $_options = []; - final public function __get($name): array|null + final public function __get($name) { if (!array_key_exists($name, $this->_options)) { return null; } - return $this->_options; + return $this->_options[$name]; } final public function __set($name, $value): void diff --git a/app/Libraries/CommonLibrary.php b/app/Libraries/CommonLibrary.php index c3b043e..38b49f3 100644 --- a/app/Libraries/CommonLibrary.php +++ b/app/Libraries/CommonLibrary.php @@ -6,12 +6,12 @@ abstract class CommonLibrary { private $_options = []; protected function __construct() {} - final public function __get($name): array|null + final public function __get($name) { if (!array_key_exists($name, $this->_options)) { return null; } - return $this->_options; + return $this->_options[$name]; } final public function __set($name, $value): void diff --git a/app/Libraries/MyCrawler/Mangboard/InvenCrawler.php b/app/Libraries/MyCrawler/Mangboard/InvenCrawler.php index b34c785..e1418f5 100644 --- a/app/Libraries/MyCrawler/Mangboard/InvenCrawler.php +++ b/app/Libraries/MyCrawler/Mangboard/InvenCrawler.php @@ -121,6 +121,8 @@ class InvenCrawler extends MangboardCrawler // public function execute(int $max_limit): void { + echo $this->isDebug ? "TRUE" : "FALSE"; + exit; try { if ($this->isDebug) { $listInfo = [];