From 2d563673abdcfe7cb501d0268ccdb12bb154a676 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 15 Sep 2022 16:06:25 +0800 Subject: [PATCH] s --- app/controller/Wechat.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controller/Wechat.php b/app/controller/Wechat.php index b757183..f075d08 100644 --- a/app/controller/Wechat.php +++ b/app/controller/Wechat.php @@ -118,12 +118,12 @@ class Wechat 'order_id' => $order->id, ]); - $config = Config::get('wechat.payment'); - $payment = Factory::payment($config); - $unify = $payment->order->unify([ + $config = Config::get('wechat.payment'); + $payment = Factory::payment($config); + $unify = $payment->order->unify([ 'body' => '商品订单', 'out_trade_no' => $outTradeNo, - 'total_fee' => 100, + 'total_fee' => $order->amount * 100, 'notify_url' => $notifyUrl, 'trade_type' => 'JSAPI', 'openid' => $user->openid,