diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index 67bbe2a7..4315fcce 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -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);