From 4b87f485b63e675b9015225e18b69bde601d4650 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 16 Mar 2020 19:26:57 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 2cdd823..df0cfde 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -341,7 +341,6 @@ class HttpClient */ private function coroutine($ip, $url, $data = []) { - echo $ip . ':' . $url . PHP_EOL; $client = $this->generate_client($ip, $url, $data); if ($client->statusCode < 0) { throw new \Exception($client->errMsg); @@ -581,6 +580,7 @@ class HttpClient { $this->setIsSSL(false); $this->setHeaders([]); + $this->setData(null); if ($this->callback !== NULL) { $result = call_user_func($this->callback, $body, $_data, $header);