From 78348ae2f73a7fe941929db161468fec95d9fa57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 3 Apr 2020 17:47:22 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {