From cdf806a390eb34d9a297871da9119297ebd48185 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 16 Mar 2020 19:29:02 +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 9d0da58..df8be86 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -523,6 +523,9 @@ class HttpClient */ private function createRequestUrl($url, $data) { + if (empty($data)) { + return $url; + } if ($this->isGet()) { return $url . '?' . $data; }