From a3da3e8758de31ba06d593a4653a9d2c890337f2 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Thu, 21 Dec 2023 21:24:16 +0800 Subject: [PATCH] yh --- app/Controller/Payment/AccountController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controller/Payment/AccountController.php b/app/Controller/Payment/AccountController.php index 791e299..a8400db 100644 --- a/app/Controller/Payment/AccountController.php +++ b/app/Controller/Payment/AccountController.php @@ -86,7 +86,7 @@ class AccountController extends AbstractController if (md5($password . $account->salt) != $account->password) { throw new BusinessException('账号或密码错误'); } - $userInfo = json_encode(['userId' => $account->account_id]); + $userInfo = json_encode(['userId' => $account->id]); $token = StringHelper::getRandomString(16); Redis::set(RedisKey::getUserTokenKey($token), $userInfo); Redis::expire(RedisKey::getUserTokenKey($token), 3600);