From 750f54b45328e5203ef103f458947a2bbbcfa82e Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Wed, 5 Jun 2024 18:44:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=89=E7=BA=A7=E5=92=8C=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/PaymentLogic.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/common/logic/PaymentLogic.php b/app/common/logic/PaymentLogic.php index 0bcec9da2..7f8ac0595 100644 --- a/app/common/logic/PaymentLogic.php +++ b/app/common/logic/PaymentLogic.php @@ -39,6 +39,9 @@ class PaymentLogic extends BaseLogic return ['pay_way' => PayEnum::BALANCE_PAY]; } try { + if(isset($order['price'])){ + $order['pay_price'] = $order['price']; + } switch ($payWay) { case PayEnum::WECHAT_PAY: $auth = UserAuth::where(['user_id' => $order['uid'], 'terminal' => $terminal])->findOrEmpty();