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; }