Automation init...3

This commit is contained in:
최준흠 2024-09-17 20:40:00 +09:00
parent 90f4f4b19d
commit ae43863d20

View File

@ -39,6 +39,9 @@ abstract class MangboardCrawler extends MyCrawler
$baord_name = $this->_board_name; $baord_name = $this->_board_name;
$boardsModel = new BoardsModel(); $boardsModel = new BoardsModel();
$boards_entity = $boardsModel->getEntityByID($this->_board_name); $boards_entity = $boardsModel->getEntityByID($this->_board_name);
if ($boards_entity === null) {
throw new \Exception(__FUNCTION__ . "=>{$this->_board_name}에 해당 Board 정보가 존재하지 않습니다.");
}
$boardModel = new BoardModel("mb_" . $baord_name); $boardModel = new BoardModel("mb_" . $baord_name);
$board_entity = $boardModel->createByCrawler( $board_entity = $boardModel->createByCrawler(
$boards_entity, $boards_entity,