1.初始化
parent
4df18c8ef6
commit
56a3a5de94
|
@ -86,7 +86,7 @@ public class AuthServiceImpl implements AuthService {
|
||||||
Map<String, Object> map = new HashMap<>();
|
Map<String, Object> map = new HashMap<>();
|
||||||
String userKey = UUID.randomUUID().toString().replace("-", "");
|
String userKey = UUID.randomUUID().toString().replace("-", "");
|
||||||
//redis存储userInfo
|
//redis存储userInfo
|
||||||
redisService.setCacheObject(JwtConstants.USER_KEY+userKey,userInfo);
|
redisService.setCacheObject(JwtConstants.USER_KEY+userKey,userInfo,30L,TimeUnit.MINUTES);
|
||||||
//生成token
|
//生成token
|
||||||
map.put(JwtConstants.USER_KEY,userKey);
|
map.put(JwtConstants.USER_KEY,userKey);
|
||||||
map.put(JwtConstants.DETAILS_USER_ID,userInfo.getId());
|
map.put(JwtConstants.DETAILS_USER_ID,userInfo.getId());
|
||||||
|
|
Loading…
Reference in New Issue