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();