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;