debug-novel-task
This commit is contained in:
@@ -96,10 +96,10 @@ class ChapterPage extends BasePage
|
|||||||
} else {
|
} else {
|
||||||
$this->arrChapterInfo['c_page_data'] = NULL;
|
$this->arrChapterInfo['c_page_data'] = NULL;
|
||||||
|
|
||||||
if(config('log.task_debug_log_open_status')){
|
$incKey = config('task.app_name').'_getChapterInfo_lastread_null:' . date('Y-m-d');
|
||||||
|
$this->redisDailyInc($incKey);
|
||||||
|
|
||||||
$incKey = config('task.app_name').'_getChapterInfo_lastread_null:' . date('Y-m-d');
|
if(config('log.task_debug_log_open_status')){
|
||||||
$this->redisDailyInc($incKey);
|
|
||||||
|
|
||||||
// 记录失败原因
|
// 记录失败原因
|
||||||
\think\facade\Log::error("Request getChapterInfo_lastread == NULL , c_page_data == NULL, ");
|
\think\facade\Log::error("Request getChapterInfo_lastread == NULL , c_page_data == NULL, ");
|
||||||
|
|||||||
@@ -296,6 +296,13 @@ class Site
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 如果不匹配有这个 说明没有请求到小说章节 或者 章节为空
|
||||||
|
$strPattern = "/lastread\.set\((.*?)\);/";
|
||||||
|
if (!preg_match($strPattern, $strContent, $arrMatches)) {
|
||||||
|
var_dump(mb_substr($strContent, 0, 300)); // 防止输出太长
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$ChapterPage = $this->getChapterPage($this, $arrFilter[$intKey]['uri']);
|
$ChapterPage = $this->getChapterPage($this, $arrFilter[$intKey]['uri']);
|
||||||
$ChapterPage->setContent($strContent);
|
$ChapterPage->setContent($strContent);
|
||||||
$ChapterPage->setData($arrFilter[$intKey]);
|
$ChapterPage->setData($arrFilter[$intKey]);
|
||||||
|
|||||||
Reference in New Issue
Block a user