diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index b8ac64b..9dd4af8 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -658,7 +658,7 @@ class HttpClient curl_setopt($ch, CURLOPT_TIMEOUT, 120);// 超时设置 curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_NOBODY, FALSE); -// curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1); // 超时设置 + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); // 超时设置 curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);//返回内容 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);// 跟踪重定向 // curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');