|
@ -411,7 +411,9 @@ public class WlyyUserDetailsService extends JdbcDaoSupport implements UserDetail
|
|
|
redisTemplate.opsForValue().set(key, "/**");
|
|
|
redisTemplate.expire(key, token.getExpiresIn(), TimeUnit.SECONDS);
|
|
|
} else if ("2".equals(loginType)) {//2.为医生账号
|
|
|
|
|
|
String key = "wlyy2:auth:token:" + token.getValue();
|
|
|
redisTemplate.opsForValue().set(key, "/**");
|
|
|
redisTemplate.expire(key, token.getExpiresIn(), TimeUnit.SECONDS);
|
|
|
} else if ("3".equals(loginType) || "4".equals(loginType)) { //3.患者账号
|
|
|
String key = "wlyy2:auth:token:" + token.getValue();
|
|
|
redisTemplate.opsForValue().set(key, "/**");
|