From def9dbb297d73ef51779340b797d925a2df11a09 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 16 Mar 2020 19:28:29 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 5023c0e..9d0da58 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -220,7 +220,6 @@ class HttpClient */ private function request($url, $data = []) { - echo $url . PHP_EOL; $data = $this->paramEncode($data); if ($this->use_swoole === false) { return $this->useCurl($url, $data); @@ -464,7 +463,9 @@ class HttpClient if ($this->method == self::POST) { curl_setopt($ch, CURLOPT_POST, 1); } + echo $url . PHP_EOL; if ($this->method != self::GET) { + var_dump($this->_data); if (!empty($this->_data)) { curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_data); } else {