This commit is contained in:
make
2025-06-17 14:15:03 +08:00
parent 96cc1cb3e4
commit bca949160e
3 changed files with 7 additions and 6 deletions

View File

@@ -217,7 +217,7 @@ class Site
$incKey = config('task.app_name').'_errer_getNovelPageInfo:' . date('Y-m-d'); // 例如success_counter:2025-06-15
Cache::store('redis')->inc($incKey);
if(config('task.service.task_debug_log_open_status')){
if(config('log.task_debug_log_open_status')){
// 记录失败原因
$reason = $arrResult['reason'] instanceof \Exception ? $arrResult['reason']->getMessage() : 'Unknown error';
$strUri = $arrFilter[$intKey]['uri'] ?? '';
@@ -282,7 +282,7 @@ class Site
} elseif ($arrResult['state'] == 'rejected') {
$incKey = config('task.app_name').'_errer_getChapterPageList:' . date('Y-m-d'); // 例如success_counter:2025-06-15
Cache::store('redis')->inc($incKey);
if(config('task.service.task_debug_log_open_status')){
if(config('log.task_debug_log_open_status')){
// 记录失败原因
$reason = $arrResult['reason'] instanceof \Exception ? $arrResult['reason']->getMessage() : 'Unknown error';
$strUri = $arrFilter[$intKey]['uri'] ?? '';
@@ -346,7 +346,7 @@ class Site
$incKey = config('task.app_name').'_errer_getLatestListPageList:' . date('Y-m-d');
Cache::store('redis')->inc($incKey);
if(config('task.service.task_debug_log_open_status')){
if(config('log.task_debug_log_open_status')){
// 记录失败原因
$reason = $arrResult['reason'] instanceof \Exception ? $arrResult['reason']->getMessage() : 'Unknown error';
$strUri = $arrFilter[$intKey] ?? '';
@@ -408,7 +408,7 @@ class Site
$incKey = config('task.app_name').'_errer_downRemoteImgToLocal:' . date('Y-m-d');
Cache::store('redis')->inc($incKey);
if(config('task.service.task_debug_log_open_status')){
if(config('log.task_debug_log_open_status')){
// 记录失败原因
$reason = $arrResult['reason'] instanceof \Exception ? $arrResult['reason']->getMessage() : 'Unknown error';
\think\facade\Log::error("Request failed for downRemoteImgToLocal , Reason: {$reason}");