预留余额支付兑换券逻辑
This commit is contained in:
parent
b63052f604
commit
01f0dab6de
@ -94,9 +94,15 @@ class PayNotifyLogic extends BaseLogic
|
|||||||
$capitalFlowDao = new CapitalFlowLogic($user);
|
$capitalFlowDao = new CapitalFlowLogic($user);
|
||||||
$capitalFlowDao->userExpense('user_order_balance_pay', 'order', $order['id'], $order['pay_price'], '', 0, $order['store_id']);
|
$capitalFlowDao->userExpense('user_order_balance_pay', 'order', $order['id'], $order['pay_price'], '', 0, $order['store_id']);
|
||||||
self::dealProductLog($order);
|
self::dealProductLog($order);
|
||||||
// if ($order['shipping_type'] == 3) {
|
if ($order['shipping_type'] == 3) {
|
||||||
// self::descStock($order['id']);
|
//预留收银台余额支付得兑换券逻辑
|
||||||
// }
|
if ($order->uid >0) {
|
||||||
|
$total_vip = bcmul($order['pay_price'], 0.1, 2);
|
||||||
|
self::addNewUserSing($order,8,$total_vip,1,1);
|
||||||
|
User::where('id', $order->uid)->inc('integral', $total_vip)->update();
|
||||||
|
}
|
||||||
|
// self::descStock($order['id']);
|
||||||
|
}
|
||||||
self::afterPay($order);
|
self::afterPay($order);
|
||||||
if ($extra && $extra['store_id']) {
|
if ($extra && $extra['store_id']) {
|
||||||
$params = [
|
$params = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user