From 31d75529bcd987f36aa595aeb77e27fa56c9110f Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 29 Aug 2019 18:00:53 +0800 Subject: [PATCH] add clear --- wx/Recharge.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wx/Recharge.php b/wx/Recharge.php index a12ad3b..0010102 100644 --- a/wx/Recharge.php +++ b/wx/Recharge.php @@ -97,7 +97,6 @@ class Recharge extends Miniprogarampage 'body' => $this->config->getBody(), 'out_trade_no' => $this->orderNo, 'total_fee' => $this->money, - 'sign_type' => $this->config->getSignType(), 'spbill_create_ip' => $_SERVER['REMOTE_ADDR'], 'notify_url' => $this->config->getNotifyUrl(), 'trade_type' => $this->config->getTradeType(), @@ -109,13 +108,16 @@ class Recharge extends Miniprogarampage $sign_type = $this->config->getSignType(); $this->data['sign'] = Help::sign($this->data, $key, $sign_type); + $this->data['sign_type'] = $this->config->getSignType(); + return Help::toXml($this->data); } public function getSignData() { - $this->data['key'] = $this->config->getKey(); - return $this->data; + $data = $this->data; + $data['key'] = $this->config->getKey(); + return $data; } /**