From cf52645c4260101b820b43e7492f912fb452c106 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Wed, 21 Aug 2019 13:20:56 +0800 Subject: [PATCH] add clear --- wx/WxClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wx/WxClient.php b/wx/WxClient.php index dcfa360..eee9cbf 100644 --- a/wx/WxClient.php +++ b/wx/WxClient.php @@ -128,7 +128,7 @@ class WxClient $client = $this->getClient($this->getHostPort(), $url, $data); if ($client->statusCode < 0) { - throw new \Exception('连接错误!'); + throw new \Exception($client->errMsg); } $body = $client->body; $client->close();