From d9f2d88f78798f5bd6cd45bdc89bb8cc79ae105f Mon Sep 17 00:00:00 2001 From: ljl Date: Fri, 22 Dec 2023 13:56:19 +0800 Subject: [PATCH] yh --- app/Controller/Payment/AccountController.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/Controller/Payment/AccountController.php b/app/Controller/Payment/AccountController.php index cdd7dc4..e2bcfcf 100644 --- a/app/Controller/Payment/AccountController.php +++ b/app/Controller/Payment/AccountController.php @@ -188,10 +188,13 @@ class AccountController extends AbstractController $userInfo = $this->checkUser($request); $account = Account::where('id', $userInfo['userId'])->first(); $userId = $this->resetUserId($userInfo['userId']); - - $user = User::where('user_id', $userId)->first(['member_id', 'realname_flag', 'bind_card_flag', 'set_pwd_flag', 'mobile', 'real_name', 'certificate_no', 'user_type', 'apply_no', 'is_platform_account']); - - $this->userService->rsyncBankCards($user->member_id); + + $user = User::where('user_id', $userId)->first(['member_id']); + if ($user) { + $this->userService->rsyncUser($user->member_id, '202308070000001', $userId); + $user = User::where('user_id', $userId)->first(['member_id', 'realname_flag', 'bind_card_flag', 'set_pwd_flag', 'mobile', 'real_name', 'certificate_no', 'user_type', 'apply_no', 'is_platform_account']); + $this->userService->rsyncBankCards($user->member_id); + } $bankCard = BankCard::where('user_id', $userId)->first(['id', 'bank_name', 'card_user_name']); return $this->success(['username' => $account->username, 'userInfo' => $user, 'bankCard' => $bankCard]);