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());