This commit is contained in:
make
2025-06-18 21:18:14 +08:00
parent dc2e8ab4fb
commit 41bf3133d9
4 changed files with 37 additions and 3 deletions

View File

@@ -124,7 +124,7 @@ class ChapterPage extends BasePage
$strTitle = $arrPageChapter['c_page_title'] ?? '';
$strPageData = $arrPageChapter['c_page_data'] ?? '';
\think\facade\Log::error("Request empty_saveChapter , strTitle: {$strTitle }, strPageData: {$strPageData}");
var_dump($strTitle .' ---- '.$strPageData);
var_dump($strTitle .' --empty_saveChapter-- '.$strPageData);
}
return false;
}
@@ -167,8 +167,8 @@ 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);
// $incKey = config('task.app_name').'_insert_before_saveChapter:' . date('Y-m-d');
// $this->redisDailyInc($incKey);
$this->getChapterModel()->insert($arrInsertNovel);

View File

@@ -120,6 +120,18 @@ class Site
$strProxy = "http://".$strKey . ":" . $strSecret. "@".$strProxyHost;
$arrConfig['proxy'] = $strProxy;
break;
case 'LUOTUO':
$arrConfig['proxy'] = $strProxyHost;
$arrConfig['curl'][CURLOPT_PROXYAUTH] = CURLAUTH_BASIC;
$arrConfig['curl'][CURLOPT_PROXYUSERPWD] = "$strKey:$strSecret";
break;
case 'DOUYA':
$arrConfig['proxy'] = $strProxyHost;
// $arrConfig['curl'][CURLOPT_PROXYTYPE] = CURLPROXY_SOCKS5; // 5 表示 SOCKS5
$arrConfig['curl'][CURLOPT_PROXYAUTH] = CURLAUTH_BASIC;
// $arrConfig['curl'][CURLOPT_PROXYUSERPWD] = "$strKey:$strSecret";
break;
}
}

View File

@@ -103,6 +103,18 @@ class Site extends ZwSite
$strProxy = "http://".$strKey . ":" . $strSecret. "@".$strProxyHost;
$arrConfig['proxy'] = $strProxy;
break;
case 'LUOTUO':
$arrConfig['proxy'] = $strProxyHost;
$arrConfig['curl'][CURLOPT_PROXYAUTH] = CURLAUTH_BASIC;
$arrConfig['curl'][CURLOPT_PROXYUSERPWD] = "$strKey:$strSecret";
break;
case 'DOUYA':
var_dump($strProxyHost);
$arrConfig['proxy'] = $strProxyHost;
// $arrConfig['curl'][CURLOPT_PROXYTYPE] = CURLPROXY_SOCKS5; // 5 表示 SOCKS5
$arrConfig['curl'][CURLOPT_PROXYAUTH] = CURLAUTH_BASIC;
// $arrConfig['curl'][CURLOPT_PROXYUSERPWD] = "$strKey:$strSecret";
break;
}
}