diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index d1bbb9b..fa34cf2 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -681,7 +681,10 @@ class HttpClient curl_setopt($ch, CURLOPT_POST, 1); } - if (!empty($data)) { + if (!empty($this->_data)) { + curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_data); + } + if ($this->method != self::GET) { curl_setopt($ch, CURLOPT_POSTFIELDS, $data); }