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

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