thirdpayment
elf 11 months ago
parent 469c26b830
commit a3da3e8758

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

Loading…
Cancel
Save