add clear

This commit is contained in:
as2252258@163.com
2020-03-16 19:26:57 +08:00
parent ba796bc373
commit 4b87f485b6
+1 -1
View File
@@ -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);