From 8e27dc41e5dbb50a4a464feddae0517d7fd0814e Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Wed, 21 Aug 2019 12:13:02 +0800 Subject: [PATCH] add clear --- wx/WxClient.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wx/WxClient.php b/wx/WxClient.php index ecb0976..dcfa360 100644 --- a/wx/WxClient.php +++ b/wx/WxClient.php @@ -141,7 +141,8 @@ class WxClient */ private function getHostIp() { - return array_shift(\Co::getAddrInfo($this->host)); + $host = \Co::getAddrInfo($this->host); + return array_shift($host); } /**