debug-add-qing-daili

This commit is contained in:
make
2025-05-22 01:51:03 +08:00
parent 94a3595c18
commit de07f06a67
3 changed files with 20 additions and 9 deletions

View File

@@ -59,11 +59,16 @@ PROXY_STATUS = true
# PROXY_KEY = DT20250413204710pFcgjMR9 # PROXY_KEY = DT20250413204710pFcgjMR9
# PROXY_SECRET = 583b141edcf65ce94f83591c5cb592ed # PROXY_SECRET = 583b141edcf65ce94f83591c5cb592ed
PROXY_CODE = KUAI #PROXY_CODE = KUAI
#PROXY_HOST = w739.kdltps.com #PROXY_HOST = w739.kdltps.com
PROXY_HOST = w740.kdltps.com:15818 #PROXY_HOST = w740.kdltps.com:15818
PROXY_KEY = t14468368981914 #PROXY_KEY = t14468368981914
PROXY_SECRET = 03xvfdc0 #PROXY_SECRET = 03xvfdc0
PROXY_CODE = QING
PROXY_HOST = tun-pmzmcw.qg.net:16358
PROXY_KEY = AE72770D
PROXY_SECRET = B9A6FFD93586
# CRAWLER # CRAWLER
NOVEL_START_N_SOURCE_ID = 1 NOVEL_START_N_SOURCE_ID = 1

View File

@@ -33,6 +33,7 @@ class Site extends ZwSite
*/ */
public $boolReInitClient = true; public $boolReInitClient = true;
/** /**
* Undocumented function * Undocumented function
*/ */
@@ -77,7 +78,6 @@ class Site extends ZwSite
$strKey = $arrProxy['proxy_key']; $strKey = $arrProxy['proxy_key'];
$strSecret = $arrProxy['proxy_secret']; $strSecret = $arrProxy['proxy_secret'];
switch ($strCode) { switch ($strCode) {
case 'XIONGMAO': case 'XIONGMAO':
$intTime = time(); $intTime = time();
@@ -92,6 +92,12 @@ class Site extends ZwSite
$arrConfig['curl'][CURLOPT_PROXYAUTH] = CURLAUTH_BASIC; $arrConfig['curl'][CURLOPT_PROXYAUTH] = CURLAUTH_BASIC;
$arrConfig['curl'][CURLOPT_PROXYUSERPWD] = "$strKey:$strSecret"; $arrConfig['curl'][CURLOPT_PROXYUSERPWD] = "$strKey:$strSecret";
break; break;
case 'QING':
$arrConfig['proxy'] = $strProxyHost;
$proxyAuth = base64_encode($strKey . ":" . $strSecret);
$arrConfig['headers']['Proxy-Authorization'] = "Basic " . $proxyAuth;
break;
} }
} }

View File

@@ -124,7 +124,7 @@ function handleRedirect() {
} else { } else {
if (!isInPcPathArray) { if (!isInPcPathArray) {
const newPath = strCurrentPath === '/' ? `${strPcPath}/` : `${strPcPath}${strCurrentPath}`; const newPath = strCurrentPath === '/' ? `/` : `${strCurrentPath}`;
window.location.href = buildUrl(newPath); window.location.href = buildUrl(newPath);
}else{ }else{
// 如果包含,则先判断是不是当前模板的 url如果不是 则替换成当前模板的 url // 如果包含,则先判断是不是当前模板的 url如果不是 则替换成当前模板的 url
@@ -233,17 +233,17 @@ function displayShujia() {
bookElement.innerHTML = ` bookElement.innerHTML = `
<div class="item"> <div class="item">
<div class="image"> <div class="image">
<a href='${strPcPath}${strNovelUrl}'> <a href='${strNovelUrl}'>
<img style="min-height:120px;" src="${book.n_cover_path}" alt="${book.n_name}"> <img style="min-height:120px;" src="${book.n_cover_path}" alt="${book.n_name}">
</a> </a>
</div> </div>
<dl> <dl>
<dt> <dt>
<span>${book.n_author}</span> <span>${book.n_author}</span>
<a href='${strPcPath}${strNovelUrl}'>${book.n_name}</a> <a href='${strNovelUrl}'>${book.n_name}</a>
</dt> </dt>
<dd style="height:90px"> <dd style="height:90px">
<a href='${strPcPath}${strNovelChapterUrl}' <a href='${strNovelChapterUrl}'
style="color: #555">${book.c_name}</a> style="color: #555">${book.c_name}</a>
</dd> </dd>
</dl> </dl>