add clear

This commit is contained in:
as2252258@163.com
2020-03-16 19:26:26 +08:00
parent d32b6e85ec
commit ba796bc373
+1 -1
View File
@@ -341,6 +341,7 @@ 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);
@@ -393,7 +394,6 @@ class HttpClient
*/
private function generate_client($host, $url, $data)
{
echo $host . ':' . $url . PHP_EOL;
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
if (!empty($this->agent)) {
$this->header['User-Agent'] = $this->agent;