diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index f0dcaf3..bb1237b 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -281,7 +281,7 @@ class HttpClient private function request($url, $data = []) { $data = $this->paramEncode($data); - if ($this->use_swoole && $this->isCli()) { + if ($this->use_swoole) { [$url, $host] = $this->parseUrlHost($url); return $this->coroutine($host, $url, $data); } else {