From 457d0ebd4eeedaabba9f3d249a500188ce4af7ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 6 Apr 2021 15:50:37 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 2 ++ wchat/wx/Recharge.php | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }