回调系统增加余额加入资金流水
This commit is contained in:
parent
b21c74f103
commit
f5819b849b
@ -431,6 +431,11 @@ class PayNotifyLogic extends BaseLogic
|
|||||||
$count_frees = bcadd($count_frees, $fees, 2);
|
$count_frees = bcadd($count_frees, $fees, 2);
|
||||||
if ($fees > 0) {
|
if ($fees > 0) {
|
||||||
User::where('id', $order['spread_uid'])->inc('now_money', $fees)->update();
|
User::where('id', $order['spread_uid'])->inc('now_money', $fees)->update();
|
||||||
|
//记录用户余额收入
|
||||||
|
$GiveUser = User::where('id',$order['spread_uid'])->find();
|
||||||
|
$capitalFlowDao = new CapitalFlowLogic($GiveUser);
|
||||||
|
$capitalFlowDao->userIncome('system_balance_add', 'order', $order['id'], $fees);
|
||||||
|
|
||||||
$financeLogic->in($transaction_id, $fees, OrderEnum::VIP_ORDER_OBTAINS, $order['store_id'], 0, 0, $order['pay_type']); //vip订单获得
|
$financeLogic->in($transaction_id, $fees, OrderEnum::VIP_ORDER_OBTAINS, $order['store_id'], 0, 0, $order['pay_type']); //vip订单获得
|
||||||
$financeLogic->out($transaction_id, $fees, OrderEnum::VIP_ORDER_OBTAINS, $order['store_id'], $order['staff_id'], 0, $order['pay_type']);
|
$financeLogic->out($transaction_id, $fees, OrderEnum::VIP_ORDER_OBTAINS, $order['store_id'], $order['staff_id'], 0, $order['pay_type']);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user