debug-add-qing-daili
This commit is contained in:
@@ -59,11 +59,16 @@ PROXY_STATUS = true
|
||||
# PROXY_KEY = DT20250413204710pFcgjMR9
|
||||
# PROXY_SECRET = 583b141edcf65ce94f83591c5cb592ed
|
||||
|
||||
PROXY_CODE = KUAI
|
||||
#PROXY_CODE = KUAI
|
||||
#PROXY_HOST = w739.kdltps.com
|
||||
PROXY_HOST = w740.kdltps.com:15818
|
||||
PROXY_KEY = t14468368981914
|
||||
PROXY_SECRET = 03xvfdc0
|
||||
#PROXY_HOST = w740.kdltps.com:15818
|
||||
#PROXY_KEY = t14468368981914
|
||||
#PROXY_SECRET = 03xvfdc0
|
||||
|
||||
PROXY_CODE = QING
|
||||
PROXY_HOST = tun-pmzmcw.qg.net:16358
|
||||
PROXY_KEY = AE72770D
|
||||
PROXY_SECRET = B9A6FFD93586
|
||||
|
||||
# CRAWLER
|
||||
NOVEL_START_N_SOURCE_ID = 1
|
||||
|
||||
@@ -33,6 +33,7 @@ class Site extends ZwSite
|
||||
*/
|
||||
public $boolReInitClient = true;
|
||||
|
||||
|
||||
/**
|
||||
* Undocumented function
|
||||
*/
|
||||
@@ -77,7 +78,6 @@ class Site extends ZwSite
|
||||
$strKey = $arrProxy['proxy_key'];
|
||||
$strSecret = $arrProxy['proxy_secret'];
|
||||
|
||||
|
||||
switch ($strCode) {
|
||||
case 'XIONGMAO':
|
||||
$intTime = time();
|
||||
@@ -92,6 +92,12 @@ class Site extends ZwSite
|
||||
$arrConfig['curl'][CURLOPT_PROXYAUTH] = CURLAUTH_BASIC;
|
||||
$arrConfig['curl'][CURLOPT_PROXYUSERPWD] = "$strKey:$strSecret";
|
||||
break;
|
||||
case 'QING':
|
||||
$arrConfig['proxy'] = $strProxyHost;
|
||||
$proxyAuth = base64_encode($strKey . ":" . $strSecret);
|
||||
$arrConfig['headers']['Proxy-Authorization'] = "Basic " . $proxyAuth;
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ function handleRedirect() {
|
||||
} else {
|
||||
|
||||
if (!isInPcPathArray) {
|
||||
const newPath = strCurrentPath === '/' ? `${strPcPath}/` : `${strPcPath}${strCurrentPath}`;
|
||||
const newPath = strCurrentPath === '/' ? `/` : `${strCurrentPath}`;
|
||||
window.location.href = buildUrl(newPath);
|
||||
}else{
|
||||
// 如果包含,则先判断是不是当前模板的 url,如果不是 则替换成当前模板的 url
|
||||
@@ -233,17 +233,17 @@ function displayShujia() {
|
||||
bookElement.innerHTML = `
|
||||
<div class="item">
|
||||
<div class="image">
|
||||
<a href='${strPcPath}${strNovelUrl}'>
|
||||
<a href='${strNovelUrl}'>
|
||||
<img style="min-height:120px;" src="${book.n_cover_path}" alt="${book.n_name}">
|
||||
</a>
|
||||
</div>
|
||||
<dl>
|
||||
<dt>
|
||||
<span>${book.n_author}</span>
|
||||
<a href='${strPcPath}${strNovelUrl}'>${book.n_name}</a>
|
||||
<a href='${strNovelUrl}'>${book.n_name}</a>
|
||||
</dt>
|
||||
<dd style="height:90px">
|
||||
<a href='${strPcPath}${strNovelChapterUrl}'
|
||||
<a href='${strNovelChapterUrl}'
|
||||
style="color: #555">${book.c_name}</a>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
Reference in New Issue
Block a user