Automation init...3

This commit is contained in:
최준흠 2024-09-11 22:36:19 +09:00
parent f72a46d180
commit dfb5808584
3 changed files with 3 additions and 4 deletions

View File

@ -48,7 +48,7 @@ abstract class MyCrawlerLibrary extends CommonLibrary
$this->getMyStorage()->setOriginContent($content);
$this->getMyStorage()->setOriginType($mediaType);
$this->getMyStorage()->setOriginSequence($file_sequence);
$results[] = $this->getMyStorage()->save();
$myStorageLibrarys[] = $this->getMyStorage()->save();
$file_sequence++;
log_message("notice", __FUNCTION__ . " OriginType->{$mediaType} 작업 완료");
} catch (\Exception $e) {
@ -60,6 +60,6 @@ abstract class MyCrawlerLibrary extends CommonLibrary
));
}
}
return $results;
return $myStorageLibrarys;
}
}

View File

@ -6,7 +6,6 @@ use App\Libraries\MySocket\WebLibrary as MySocketLibrary;
use App\Libraries\MyStorage\Mangboard\FileLibrary as MyStorageLibrary;
use App\Models\Mangboard\UserModel;
use App\Models\Mangboard\BoardModel;
use App\Entities\Mangboard\BoardEntity;
use App\Entities\Mangboard\UserEntity;
use Symfony\Component\DomCrawler\Crawler;

View File

@ -64,7 +64,7 @@ abstract class CommonModel extends Model
{
return $this->_action = $action;
}
final public function getFields(string $key = "", array $fields): array
final public function getFields(string $key = "", array $fields = []): array
{
$allowedFields = array_filter(
$this->allowedFields,