add clear
This commit is contained in:
@@ -100,10 +100,16 @@ class Recharge extends SmallProgram
|
|||||||
{
|
{
|
||||||
$data = [
|
$data = [
|
||||||
'appid' => $this->config->getAppid(),
|
'appid' => $this->config->getAppid(),
|
||||||
'mch_id' => $this->config->getMchId(),
|
'mchid' => $this->config->getMchId(),
|
||||||
'nonce_str' => Help::random(32),
|
'nonce_str' => Help::random(32),
|
||||||
'body' => $this->config->getBody(),
|
'body' => $this->config->getBody(),
|
||||||
|
'description' => $this->config->getBody(),
|
||||||
|
'payer' => ['openid' => $this->data['openid']],
|
||||||
'out_trade_no' => $this->orderNo,
|
'out_trade_no' => $this->orderNo,
|
||||||
|
"amount" => [
|
||||||
|
"total" => $this->money,
|
||||||
|
"currency" => "CNY"
|
||||||
|
],
|
||||||
'total_fee' => $this->money,
|
'total_fee' => $this->money,
|
||||||
'spbill_create_ip' => $_SERVER['REMOTE_ADDR'],
|
'spbill_create_ip' => $_SERVER['REMOTE_ADDR'],
|
||||||
'notify_url' => $this->config->getNotifyUrl(),
|
'notify_url' => $this->config->getNotifyUrl(),
|
||||||
|
|||||||
Reference in New Issue
Block a user