debug
This commit is contained in:
@@ -77,7 +77,7 @@ class Site extends ZwSite
|
|||||||
$strProxyHost = $arrProxy['proxy_host'];
|
$strProxyHost = $arrProxy['proxy_host'];
|
||||||
$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();
|
||||||
@@ -97,7 +97,13 @@ class Site extends ZwSite
|
|||||||
$proxyAuth = base64_encode($strKey . ":" . $strSecret);
|
$proxyAuth = base64_encode($strKey . ":" . $strSecret);
|
||||||
$arrConfig['headers']['Proxy-Authorization'] = "Basic " . $proxyAuth;
|
$arrConfig['headers']['Proxy-Authorization'] = "Basic " . $proxyAuth;
|
||||||
break;
|
break;
|
||||||
|
case 'JULIANG':
|
||||||
|
// 隧道代理信息
|
||||||
|
// $proxy = 'http://username:password@XXX.juliangip.com:23456';
|
||||||
|
$proxy = "http://".$strKey . ":" . $strSecret. "@".$strProxyHost;
|
||||||
|
$arrConfig['proxy'] = $proxy;
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user