From b3e010d251717e750c21491c9941ff797d2b73d9 Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Mon, 24 Jun 2024 10:46:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/PayNotifyLogic.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index 892b39853..5f84a2d92 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -273,14 +273,20 @@ class PayNotifyLogic extends BaseLogic if($order['pay_type'] == PayEnum::BALANCE_PAY){ $user->now_money = bcadd($user->now_money, $deal_money, 2); $user->save(); + //增加数量 + self::addStock($order['id']); } if($order['pay_type'] == PayEnum::PURCHASE_FUNDS){ $user->purchase_funds = bcadd($user->purchase_funds, $deal_money, 2); $user->save(); + //增加数量 + self::addStock($order['id']); } } + self::addStock($order['id']);//微信 + // self::afterPay($order,$extra['transaction_id']); }