This commit is contained in:
cwchen 2024-04-03 11:12:49 +08:00
parent fc3ff5319b
commit d816119448
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class TokenService {
String jwtToken=JwtUtils.createToken(claimsMap); String jwtToken=JwtUtils.createToken(claimsMap);
rspMap.put("access_token", jwtToken); rspMap.put("access_token", jwtToken);
rspMap.put("us", JSON.toJSONString(loginUser.getSysUser())); rspMap.put("us", JSON.toJSONString(loginUser.getSysUser()));
int time=60*30; int time=60*120;
redisService.set("token:"+jwtToken,jwtToken,time); redisService.set("token:"+jwtToken,jwtToken,time);
redisService.set("userId::"+userId,jwtToken,time); redisService.set("userId::"+userId,jwtToken,time);
redisService.set("ISCUserId:"+jwtToken,loginUser.getSysUser().getIscUserId(),time); redisService.set("ISCUserId:"+jwtToken,loginUser.getSysUser().getIscUserId(),time);