From 13ed3973b7d4b13a66b003390b0d01734fa11417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Tue, 3 Sep 2024 19:48:06 +0900 Subject: [PATCH] Automationn init... --- app/Controllers/CLI/Crawler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/CLI/Crawler.php b/app/Controllers/CLI/Crawler.php index 1900e61..df406a0 100644 --- a/app/Controllers/CLI/Crawler.php +++ b/app/Controllers/CLI/Crawler.php @@ -21,7 +21,7 @@ class Crawler extends BaseController throw new \Exception("Target Links가 없습니다."); } //2. TargetPage : div.contents 가진 객체를 찾아서 첫번쨰 요소에서만 참조 - $url = !in_array("debug", $params) ? getenv("yamap.url.test") : $links[0]["href"]; + $url = $isDebug ? getenv("yamap.url.test") : $links[0]["href"]; $crawler = $library->getCrawlerByDetailPage($url); //3. Image $library->getImages($crawler);