1.初始化

master
ruyaxie 2024-08-12 22:24:26 +08:00
parent 4df18c8ef6
commit 56a3a5de94
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ public class AuthServiceImpl implements AuthService {
Map<String, Object> map = new HashMap<>();
String userKey = UUID.randomUUID().toString().replace("-", "");
//redis存储userInfo
redisService.setCacheObject(JwtConstants.USER_KEY+userKey,userInfo);
redisService.setCacheObject(JwtConstants.USER_KEY+userKey,userInfo,30L,TimeUnit.MINUTES);
//生成token
map.put(JwtConstants.USER_KEY,userKey);
map.put(JwtConstants.DETAILS_USER_ID,userInfo.getId());