add clear

This commit is contained in:
as2252258@163.com
2019-08-29 18:00:53 +08:00
parent f13a0e80ff
commit 31d75529bc
+5 -3
View File
@@ -97,7 +97,6 @@ class Recharge extends Miniprogarampage
'body' => $this->config->getBody(), 'body' => $this->config->getBody(),
'out_trade_no' => $this->orderNo, 'out_trade_no' => $this->orderNo,
'total_fee' => $this->money, 'total_fee' => $this->money,
'sign_type' => $this->config->getSignType(),
'spbill_create_ip' => $_SERVER['REMOTE_ADDR'], 'spbill_create_ip' => $_SERVER['REMOTE_ADDR'],
'notify_url' => $this->config->getNotifyUrl(), 'notify_url' => $this->config->getNotifyUrl(),
'trade_type' => $this->config->getTradeType(), 'trade_type' => $this->config->getTradeType(),
@@ -109,13 +108,16 @@ class Recharge extends Miniprogarampage
$sign_type = $this->config->getSignType(); $sign_type = $this->config->getSignType();
$this->data['sign'] = Help::sign($this->data, $key, $sign_type); $this->data['sign'] = Help::sign($this->data, $key, $sign_type);
$this->data['sign_type'] = $this->config->getSignType();
return Help::toXml($this->data); return Help::toXml($this->data);
} }
public function getSignData() public function getSignData()
{ {
$this->data['key'] = $this->config->getKey(); $data = $this->data;
return $this->data; $data['key'] = $this->config->getKey();
return $data;
} }
/** /**