diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 48a9961..db0755a 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -465,10 +465,12 @@ class HttpClient } echo $url . PHP_EOL; if ($this->method != self::GET) { - var_dump($this->_data, $data); if (!empty($this->_data)) { curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_data); } else { + if (is_array($data)) { + $data = http_build_query($data); + } curl_setopt($ch, CURLOPT_POSTFIELDS, $data); } }