From ae48449a358ed3f83ea431080b0174e4496a0ee6 Mon Sep 17 00:00:00 2001 From: make Date: Wed, 18 Jun 2025 02:27:32 +0800 Subject: [PATCH] debug --- code/app/task/crawler/zw/page/ChapterPage.php | 3 +++ code/app/task/crawler/zw/page/Site.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/code/app/task/crawler/zw/page/ChapterPage.php b/code/app/task/crawler/zw/page/ChapterPage.php index 456a4e1..72f87a7 100644 --- a/code/app/task/crawler/zw/page/ChapterPage.php +++ b/code/app/task/crawler/zw/page/ChapterPage.php @@ -158,6 +158,9 @@ class ChapterPage extends BasePage $arrInsertNovel['created_at'] = new \MongoDB\BSON\UTCDateTime(); try { + $incKey = config('task.app_name').'_insert_before_saveChapter:' . date('Y-m-d'); + $this->redisDailyInc($incKey); + $this->getChapterModel()->insert($arrInsertNovel); $incKey = config('task.app_name').'_success_saveChapter:' . date('Y-m-d'); diff --git a/code/app/task/crawler/zw/page/Site.php b/code/app/task/crawler/zw/page/Site.php index 7d37728..5bd0d73 100644 --- a/code/app/task/crawler/zw/page/Site.php +++ b/code/app/task/crawler/zw/page/Site.php @@ -306,6 +306,9 @@ class Site $ChapterPage->setData($arrFilter[$intKey]); $arrChapterPage[] = $ChapterPage; + + $incKey = config('task.app_name').'_success_quit_getChapterPageList:' . date('Y-m-d'); + $this->redisDailyInc($incKey); } return $arrChapterPage;