From dc6f7503f7e25465b96b33fd5e053209ccac3c67 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 22 Jun 2024 18:35:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(store=5Forder):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=94=AF=E4=BB=98=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=8E=B0=E9=87=91=E6=94=AF=E4=BB=98=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/store_order/StoreOrderController.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/store/controller/store_order/StoreOrderController.php b/app/store/controller/store_order/StoreOrderController.php index 1c8f35bd5..668dda2ae 100644 --- a/app/store/controller/store_order/StoreOrderController.php +++ b/app/store/controller/store_order/StoreOrderController.php @@ -345,6 +345,12 @@ class StoreOrderController extends BaseAdminController */ public function rechange_amount() { + // $order = UserRecharge::where('order_id','CZ1719052252643357')->find(); + // $order['pay_price'] = $order['price']; + // d(1); + // PayNotifyLogic::handle('recharge', $order['order_id'], $order); + + // d(1); $pay_type = $this->request->post('pay_type'); $auth_code = $this->request->post('auth_code'); //微信支付条码 if ($auth_code == '' && $pay_type != PayEnum::CASH_PAY) { @@ -361,10 +367,11 @@ class StoreOrderController extends BaseAdminController ]; $order = UserRecharge::create($data); $order['pay_price'] = $order['price']; + $order['buyer_pay_amount'] = $order['price']; switch ($pay_type) { case PayEnum::CASH_PAY: //现金支付 - PayNotifyLogic::handle('recharge', $order['order_id'], $order); + PayNotifyLogic::handle('recharge', $order['order_id'], $order,'CASH_PAY'); return $this->success('现金支付成功', ['id' => $order['id']]); break; case PayEnum::WECHAT_PAY_BARCODE: