From 469c26b830b204628541722792b3593f68f6b9d0 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Thu, 21 Dec 2023 21:23:34 +0800 Subject: [PATCH] yh --- app/Controller/Payment/AccountController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Controller/Payment/AccountController.php b/app/Controller/Payment/AccountController.php index 4b4a858..791e299 100644 --- a/app/Controller/Payment/AccountController.php +++ b/app/Controller/Payment/AccountController.php @@ -142,10 +142,11 @@ class AccountController extends AbstractController public function getUserInfo(RequestInterface $request) { $userInfo = $this->checkUser($request); + var_dump($userInfo); $account = Account::where('id', $userInfo['userId'])->first(); $userId = 'ACT_' . $userInfo['userId']; $user = User::where('user_id', $userId)->first(['realname_flag', 'bind_card_flag', 'set_pwd_flag', 'mobile', 'real_name', 'certificate_no', 'user_type', 'apply_no', 'is_platform_account']); $bankCard = BankCard::where('user_id', $userId)->first(['bank_name', 'card_user_name']); - return $this->success(['username' => $account['username'], 'userInfo' => $user, $bankCard => $bankCard]); + return $this->success(['username' => $account->username, 'userInfo' => $user, 'bankCard' => $bankCard]); } }