add clear
This commit is contained in:
@@ -654,7 +654,10 @@ class HttpClient
|
|||||||
private function curlParse($url, $data)
|
private function curlParse($url, $data)
|
||||||
{
|
{
|
||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
curl_setopt($ch, CURLOPT_URL, $this->createRequestUrl($url, $data));
|
|
||||||
|
$url = $this->createRequestUrl($url, $data);
|
||||||
|
var_dump($url);
|
||||||
|
curl_setopt($ch, CURLOPT_URL, $url);
|
||||||
if ($this->timeout > 0) {
|
if ($this->timeout > 0) {
|
||||||
curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout); // 超时设置
|
curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout); // 超时设置
|
||||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->timeout); // 超时设置
|
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->timeout); // 超时设置
|
||||||
|
|||||||
Reference in New Issue
Block a user