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