add clear

This commit is contained in:
2021-01-30 18:57:39 +08:00
parent 16c728e697
commit 781d754d59
+4 -1
View File
@@ -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); // 超时设置