add clear
This commit is contained in:
@@ -21,16 +21,16 @@ class Recharge extends SmallProgram
|
||||
|
||||
private $data = [];
|
||||
|
||||
private $spbill_create_ip = '';
|
||||
private $spill_create_ip = '';
|
||||
|
||||
private $unifiedorder = 'https://qpay.qq.com/cgi-bin/pay/qpay_unified_order.cgi';
|
||||
private $uniformer = 'https://qpay.qq.com/cgi-bin/pay/qpay_unified_order.cgi';
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
*/
|
||||
public function setSpbillCreateIp(string $value)
|
||||
public function setSpillCreateIp(string $value)
|
||||
{
|
||||
$this->spbill_create_ip = $value;
|
||||
$this->spill_create_ip = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -55,15 +55,13 @@ class Recharge extends SmallProgram
|
||||
$sign = $data['sign'];
|
||||
unset($data['sign']);
|
||||
}
|
||||
|
||||
if (!isset($sign)) {
|
||||
$return['code'] = -1;
|
||||
$return['message'] = '返回数据签名验证失败';
|
||||
} else {
|
||||
$data['postBody'] = $body;
|
||||
|
||||
$return['code'] = 0;
|
||||
$return['data'] = $data;
|
||||
$return['data']['postBody'] = $body;
|
||||
if ($data['return_code'] == 'FAIL') {
|
||||
$return['code'] = -1;
|
||||
$return['message'] = $data['return_msg'];
|
||||
@@ -71,7 +69,7 @@ class Recharge extends SmallProgram
|
||||
}
|
||||
return new Result($return);
|
||||
});
|
||||
return $this->send($this->unifiedorder, $this->builder());
|
||||
return $this->send($this->uniformer, $this->builder());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -86,7 +84,7 @@ class Recharge extends SmallProgram
|
||||
'body' => $this->config->getBody(),
|
||||
'out_trade_no' => $this->orderNo,
|
||||
'total_fee' => $this->money,
|
||||
'spbill_create_ip' => $this->spbill_create_ip,
|
||||
'spbill_create_ip' => $this->spill_create_ip,
|
||||
'notify_url' => $this->config->getNotifyUrl(),
|
||||
'trade_type' => $this->config->getTradeType(),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user