From 07bf39944ac74ebaa97bfa17929a3ab517b54917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Tue, 10 Sep 2024 11:26:58 +0900 Subject: [PATCH] Automation init...3 --- app/Libraries/MyCrawler/MyCrawlerLibrary.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Libraries/MyCrawler/MyCrawlerLibrary.php b/app/Libraries/MyCrawler/MyCrawlerLibrary.php index 3e82b4e..088e1c5 100644 --- a/app/Libraries/MyCrawler/MyCrawlerLibrary.php +++ b/app/Libraries/MyCrawler/MyCrawlerLibrary.php @@ -44,11 +44,7 @@ abstract class MyCrawlerLibrary extends CommonLibrary foreach ($nodes as $node) { try { list($fileName, $content) = $this->getMySocket()->download($node->attr($options["attr"])); - $entity = $this->getMyStorage()->save($fileName, $mediaType, $content, $file_sequence); - if ($entity === null) { - continue; - } - $entitys[] = $entity; + $entitys[] = $this->getMyStorage()->save($fileName, $mediaType, $content, $file_sequence); $file_sequence++; } catch (\Exception $e) { log_message("notice", $e->getMessage());