thirdpayment
ljl 11 months ago
parent 4ac8335a9c
commit d9f2d88f78

@ -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]);

Loading…
Cancel
Save