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

@@ -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;
}
}