首次充值写入店铺数据

This commit is contained in:
liu 2024-07-06 11:53:41 +08:00
parent 9f36a0e968
commit 609f981c9f

View File

@ -437,6 +437,11 @@ class PayNotifyLogic extends BaseLogic
$order->save();
$uid = $order->uid;
$user = User::where('id', $uid)->findOrEmpty();
//check store_id
if(empty($user->store_id)){
$user->store_id = $order['store_id'];
}
//用户的财务add
$capitalFlowDao = new CapitalFlowLogic($user);
$capitalFlowDao->userIncome('user_balance_recharge', 'user_recharge', $order['id'], $price, [], 1);