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; } /**