diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index fa456b8..d1bbb9b 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) { + if (!empty($data)) { curl_setopt($ch, CURLOPT_POSTFIELDS, $data); }