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);