Automation init...3

This commit is contained in:
최준흠 2024-09-10 11:26:58 +09:00
parent 32c58a2f76
commit 07bf39944a

View File

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