From 5ee4e994c78feec56afde9ee61c436ebe71c5234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 3 Apr 2020 17:46:43 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 15e2515..f0dcaf3 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -139,6 +139,9 @@ class HttpClient public function setUseSwoole($bool) { $this->use_swoole = $bool; + if ($this->use_swoole) { + function_exists('setCli') && setCli(true); + } return $this; }