diff --git a/code/.example.env b/code/.example.env index 3c5b895..a19e511 100644 --- a/code/.example.env +++ b/code/.example.env @@ -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 diff --git a/code/app/task/crawler/zw74/page/Site.php b/code/app/task/crawler/zw74/page/Site.php index 806316c..a6ff284 100644 --- a/code/app/task/crawler/zw74/page/Site.php +++ b/code/app/task/crawler/zw74/page/Site.php @@ -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; + } } diff --git a/code/public/public/video/common.js b/code/public/public/video/common.js index 77eeec1..ca131b9 100644 --- a/code/public/public/video/common.js +++ b/code/public/public/video/common.js @@ -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 = `
- + ${book.n_name}
${book.n_author} - ${book.n_name} + ${book.n_name}
- ${book.c_name}