From 781d754d591b24fd5cce48625d218ad7e67aa736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sat, 30 Jan 2021 18:57:39 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 4559a5e..4c82ead 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -654,7 +654,10 @@ class HttpClient private function curlParse($url, $data) { $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) { curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout); // 超时设置 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->timeout); // 超时设置