From 062f71286213603a4c0a4dd719fdced8c5899c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 25 Nov 2020 17:26:59 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 18958c2..db276b0 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -683,6 +683,8 @@ class HttpClient if ($this->method != self::GET && !empty($this->_data)) { $this->_data = $this->mergeParams($data); + } else { + $this->_data = $data; } curl_setopt($ch, CURLOPT_CUSTOMREQUEST, strtoupper($this->method));