From cb25fce004309a245470df622ff70db8ef020f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 3 Apr 2020 17:43:45 +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 eeb2dc6..15e2515 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -278,7 +278,7 @@ class HttpClient private function request($url, $data = []) { $data = $this->paramEncode($data); - if ($this->use_swoole || $this->isCli()) { + if ($this->use_swoole && $this->isCli()) { [$url, $host] = $this->parseUrlHost($url); return $this->coroutine($host, $url, $data); } else {