add clear

This commit is contained in:
2021-01-30 17:39:30 +08:00
parent b6f7c0b840
commit 49b671afa4
+7 -1
View File
@@ -100,10 +100,16 @@ class Recharge extends SmallProgram
{
$data = [
'appid' => $this->config->getAppid(),
'mch_id' => $this->config->getMchId(),
'mchid' => $this->config->getMchId(),
'nonce_str' => Help::random(32),
'body' => $this->config->getBody(),
'description' => $this->config->getBody(),
'payer' => ['openid' => $this->data['openid']],
'out_trade_no' => $this->orderNo,
"amount" => [
"total" => $this->money,
"currency" => "CNY"
],
'total_fee' => $this->money,
'spbill_create_ip' => $_SERVER['REMOTE_ADDR'],
'notify_url' => $this->config->getNotifyUrl(),