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(),