diff --git a/code/app/task/crawler/zw630/Scheduler.php b/code/app/task/crawler/zw630/Scheduler.php index d467624..0cee580 100644 --- a/code/app/task/crawler/zw630/Scheduler.php +++ b/code/app/task/crawler/zw630/Scheduler.php @@ -35,10 +35,9 @@ class Scheduler $intSliceSize = 6; $arrFilter = []; - // for ($intNId = 1; $intNId <= 531208; $intNId++) { - // for ($intNId = 1; $intNId <= 10000; $intNId++) { - for ($intNId = 1; $intNId <= 20; $intNId++) { - + for ($intNId = 1; $intNId <= 531208; $intNId++) { + // for ($intNId = 1; $intNId <= 10000; $intNId++) { + // for ($intNId = 1; $intNId <= 20; $intNId++) { $arrFilter[] = [ 'n_source_id' => $intNId, 'page' => 0, @@ -52,28 +51,6 @@ class Scheduler if (!empty($arrFilter)) { $this->fetchNovel($arrFilter); } - return; - - - - // $arrTest = [ - // 'n_id' => 9973, - // 'filter' => [ - // [ - // 'name' => '第十四章 神兽空青蛇妖', - // 'uri' => '/shu/1/33.html', - // 'c_sort_num' => 32, - // 'c_source_id' => 33, - // 'c_page' => 0, - // ], - // ] - // ]; - - // $arrTask = [ - // 'callback' => [self::class, 'getChapterInfo'], - // 'data' => $arrTest - // ]; - // $this->QueueManage->set($arrTask); } /** @@ -87,10 +64,6 @@ class Scheduler $arrTask = [ 'callback' => [self::class, 'getNovelInfo'], 'data' => $arrFilter, - // 'data' => [ - // 'n_source_id' => $intNSourceId, - // 'page' => $intPage, - // ] ]; $this->QueueManage->set($arrTask); } @@ -112,7 +85,6 @@ class Scheduler 'callback' => [self::class, 'getChapterInfo'], 'data' => [ 'n_id' => $intNId, - // 'filter' => $arrFilter, ] ]; $arrFilter = []; @@ -165,10 +137,9 @@ class Scheduler ]); } - // $arrCover[] = $NovelPage->getDownCoverInfo(); - // $arrChapterList = $NovelPage->getChapters(); - - // $this->fetchChapter($arrNovel['n_id'], $NovelPage->getData()['page'], $arrChapterList); + $arrCover[] = $NovelPage->getDownCoverInfo(); + $arrChapterList = $NovelPage->getChapters(); + $this->fetchChapter($arrNovel['n_id'], $NovelPage->getData()['page'], $arrChapterList); } if ($arrCover) { $Site->downRemoteImgToLocal($arrCover);