|
|
@@ -23,11 +23,11 @@ class Curl
|
|
|
* @param array $header header信息 array('Host: api.kingdee.meitushop.com' )设置请求的host
|
|
|
* @return string
|
|
|
*/
|
|
|
- public static function get($url, $proxy = null, $timeout = 10, $header = null,$REFERER=null)
|
|
|
+ public static function get($url, $proxy = null, $timeout = 3, $header = null,$REFERER=null)
|
|
|
{
|
|
|
if (!$url)
|
|
|
return false;
|
|
|
- $ssl = stripos($url, 'https://') === 0 ? true : false;
|
|
|
+ $ssl = stripos($url, 'https://') === 0;
|
|
|
$curl = curl_init();
|
|
|
if (!is_null($proxy))
|
|
|
curl_setopt($curl, CURLOPT_PROXY, $proxy);
|