add clear
This commit is contained in:
@@ -283,8 +283,10 @@ class HttpClient
|
|||||||
$data = $this->paramEncode($data);
|
$data = $this->paramEncode($data);
|
||||||
if ($this->use_swoole) {
|
if ($this->use_swoole) {
|
||||||
[$url, $host] = $this->parseUrlHost($url);
|
[$url, $host] = $this->parseUrlHost($url);
|
||||||
|
var_dump($url, $host);
|
||||||
return $this->coroutine($host, $url, $data);
|
return $this->coroutine($host, $url, $data);
|
||||||
} else {
|
} else {
|
||||||
|
var_dump($url, 'curl');
|
||||||
return $this->useCurl($url, $data);
|
return $this->useCurl($url, $data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user