diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index a62671e..e83fe9c 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -694,6 +694,8 @@ class HttpClient curl_setopt($ch, CURLOPT_POST, 1); if (!is_string($data)) { curl_setopt($ch, CURLOPT_POSTFIELDS, $this->mergeParams($data)); + } else { + curl_setopt($ch, CURLOPT_POSTFIELDS, $data); } } diff --git a/wchat/wx/Recharge.php b/wchat/wx/Recharge.php index fc9c68e..b0ac653 100644 --- a/wchat/wx/Recharge.php +++ b/wchat/wx/Recharge.php @@ -117,8 +117,6 @@ class Recharge extends SmallProgram $data['sign'] = Help::sign($data, $key, $sign_type); $data['sign_type'] = $sign_type; - var_dump($data); - return Help::toXml($data); }