This commit is contained in:
2022-09-15 16:06:25 +08:00
parent 2cf76a21fb
commit 2d563673ab

View File

@@ -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,