fix(sp.assertion): 修复缓存用户信息失败的问题

Signed-off-by: 李东云 <dongyun.li@luxcreo.ai>
This commit is contained in:
李东云
2022-04-29 01:21:40 +08:00
parent b1405f485a
commit d35b758a71

View File

@@ -91,9 +91,9 @@ class Assertion
$user = new User($user);
// 更新
$token = $this->authentication->generate($user);
$token = $this->authentication->generate(new User($user));
// 记录映射
$key = "{$redis_prefix}user:token_map:$user->uid";
$key = "{$redis_prefix}user:token_map:{$user['uid']}";
if ($allow_multi_online) {
$this->redis->hSet($key, $user->originToken, $token);
} else {