Automation init...3
This commit is contained in:
parent
919d6cc78a
commit
f68a1c639c
@ -3,6 +3,7 @@
|
|||||||
namespace App\Controllers\Mangboard\Crawler;
|
namespace App\Controllers\Mangboard\Crawler;
|
||||||
|
|
||||||
use App\Controllers\CommonController;
|
use App\Controllers\CommonController;
|
||||||
|
use App\Entities\Mangboard\BoardEntity;
|
||||||
use App\Entities\Mangboard\BoardsEntity;
|
use App\Entities\Mangboard\BoardsEntity;
|
||||||
use App\Entities\Mangboard\UserEntity;
|
use App\Entities\Mangboard\UserEntity;
|
||||||
use App\Libraries\MySocket\WebSocket;
|
use App\Libraries\MySocket\WebSocket;
|
||||||
@ -225,10 +226,9 @@ abstract class MyCrawler extends CommonController
|
|||||||
return $storages;
|
return $storages;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function create_board_process(int $cnt, array $listInfo, array $storages)
|
private function create_board_process(int $cnt, array $listInfo, array $storages, array $formDatas = ['image_path' => "", 'content' => ""]): BoardEntity
|
||||||
{
|
{
|
||||||
//Board DB 등록작업등
|
//Board DB 등록작업등
|
||||||
$formDatas = ['image_path' => "", 'content' => ""];
|
|
||||||
//미디어관련정보 entity에 넣기
|
//미디어관련정보 entity에 넣기
|
||||||
$formDatas['title'] = $listInfo["title"];
|
$formDatas['title'] = $listInfo["title"];
|
||||||
$formDatas['user_pid'] = $this->getUserEntity()->getPK();
|
$formDatas['user_pid'] = $this->getUserEntity()->getPK();
|
||||||
@ -295,7 +295,7 @@ abstract class MyCrawler extends CommonController
|
|||||||
$formDatas['image_path'] = "";
|
$formDatas['image_path'] = "";
|
||||||
$formDatas['content'] = $selector->html();
|
$formDatas['content'] = $selector->html();
|
||||||
//Board 등록작업등
|
//Board 등록작업등
|
||||||
$board_entity = $this->create_board_process($cnt, $listInfo, []);
|
$this->create_board_process($cnt, $listInfo, [], $formDatas);
|
||||||
log_message("notice", __FUNCTION__ . " 작업이 완료되었습니다.");
|
log_message("notice", __FUNCTION__ . " 작업이 완료되었습니다.");
|
||||||
return $listInfo;
|
return $listInfo;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user