From b1524a7eaf6e0caf4e41154036d5837079698b9e Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 29 Aug 2019 17:40:42 +0800 Subject: [PATCH] add clear --- wx/Recharge.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/wx/Recharge.php b/wx/Recharge.php index a1bc953..3319660 100644 --- a/wx/Recharge.php +++ b/wx/Recharge.php @@ -103,13 +103,18 @@ class Recharge extends Miniprogarampage 'trade_type' => $this->config->getTradeType(), ]; - $data = array_merge($data, $this->data); + $this->data = array_merge($data, $this->data); $key = $this->config->getKey(); $sign_type = $this->config->getSignType(); - $data['sign'] = Help::sign($data, $key, $sign_type); - return Help::toXml($data); + $data['sign'] = Help::sign($this->data, $key, $sign_type); + return Help::toXml($this->data); + } + + public function getSignData() + { + return $this->data; } /**