From 49b671afa49345c94b3092bead95b1f6f06c60dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sat, 30 Jan 2021 17:39:30 +0800 Subject: [PATCH] add clear --- wchat/wx/Recharge.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wchat/wx/Recharge.php b/wchat/wx/Recharge.php index d7a1221..3416dcb 100644 --- a/wchat/wx/Recharge.php +++ b/wchat/wx/Recharge.php @@ -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(),