首次充值写入店铺数据
This commit is contained in:
parent
9f36a0e968
commit
609f981c9f
@ -437,6 +437,11 @@ class PayNotifyLogic extends BaseLogic
|
|||||||
$order->save();
|
$order->save();
|
||||||
$uid = $order->uid;
|
$uid = $order->uid;
|
||||||
$user = User::where('id', $uid)->findOrEmpty();
|
$user = User::where('id', $uid)->findOrEmpty();
|
||||||
|
//check store_id
|
||||||
|
if(empty($user->store_id)){
|
||||||
|
$user->store_id = $order['store_id'];
|
||||||
|
}
|
||||||
|
|
||||||
//用户的财务add
|
//用户的财务add
|
||||||
$capitalFlowDao = new CapitalFlowLogic($user);
|
$capitalFlowDao = new CapitalFlowLogic($user);
|
||||||
$capitalFlowDao->userIncome('user_balance_recharge', 'user_recharge', $order['id'], $price, [], 1);
|
$capitalFlowDao->userIncome('user_balance_recharge', 'user_recharge', $order['id'], $price, [], 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user