This commit is contained in:
Default
2025-04-10 15:55:53 +08:00
parent fb2a5a30f8
commit 44eb45793b
3 changed files with 51 additions and 5 deletions

View File

@@ -9,12 +9,10 @@ class PlanTaskSeeder
{
static public function handle()
{
self::addNovelTypePlanTask();
}
// 添加小说类型站点 爬虫任务
static public function addNovelTypePlanTask()
{
$arrDataNovel = [
@@ -25,8 +23,14 @@ class PlanTaskSeeder
'pt_enable' => 1,
'pt_limit' => 10 * 24 * 3600 * 3,
],
[
'pt_name' => '630小说每日增量',
'pt_code' => 'PULL_630_ZW_NOVEL_LATEST',
'pt_enable' => 1,
'pt_limit' => 1 * 24 * 3600,
],
];
foreach ($arrDataNovel as $arrPlanTask) {
$NovelOnePlanTaskModel = PlanTaskModel::where('pt_code', $arrPlanTask['pt_code'])->find();