From 29758ebf526e751540bf8179fe523538ef93d107 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 16 Mar 2020 19:29:59 +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 df8be86..0d76964 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -527,6 +527,9 @@ class HttpClient return $url; } if ($this->isGet()) { + if (strpos($url, '?') !== false) { + return $url . '&' . $data; + } return $url . '?' . $data; } return $url;