增加数量
This commit is contained in:
parent
fb756ff31e
commit
b3e010d251
@ -273,14 +273,20 @@ class PayNotifyLogic extends BaseLogic
|
|||||||
if($order['pay_type'] == PayEnum::BALANCE_PAY){
|
if($order['pay_type'] == PayEnum::BALANCE_PAY){
|
||||||
$user->now_money = bcadd($user->now_money, $deal_money, 2);
|
$user->now_money = bcadd($user->now_money, $deal_money, 2);
|
||||||
$user->save();
|
$user->save();
|
||||||
|
//增加数量
|
||||||
|
self::addStock($order['id']);
|
||||||
}
|
}
|
||||||
if($order['pay_type'] == PayEnum::PURCHASE_FUNDS){
|
if($order['pay_type'] == PayEnum::PURCHASE_FUNDS){
|
||||||
$user->purchase_funds = bcadd($user->purchase_funds, $deal_money, 2);
|
$user->purchase_funds = bcadd($user->purchase_funds, $deal_money, 2);
|
||||||
$user->save();
|
$user->save();
|
||||||
|
//增加数量
|
||||||
|
self::addStock($order['id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self::addStock($order['id']);//微信
|
||||||
|
|
||||||
// self::afterPay($order,$extra['transaction_id']);
|
// self::afterPay($order,$extra['transaction_id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user