From b92fdeee395ecbcb3de5fa9eb05592ae07bafe67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 25 Nov 2020 16:45:27 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index af01af6..213652b 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -681,7 +681,7 @@ class HttpClient curl_setopt($ch, CURLOPT_POST, 1); } if ($this->method == self::GET || !empty($this->_data)) { - curl_setopt($ch, CURLOPT_POSTFIELDS, $data); + curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_data); } else { curl_setopt($ch, CURLOPT_POSTFIELDS, $this->mergeParams($data)); }