增加数量

This commit is contained in:
liu 2024-06-24 10:46:52 +08:00
parent fb756ff31e
commit b3e010d251

View File

@ -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']);
}