退出接口修改-只要退出用户端和管理端同时退出
parent
450736216f
commit
38574a6172
|
@ -935,6 +935,9 @@ public class UserServiceImpl implements UserService {
|
|||
String tokenKey = Common.TOKEN + "_" + Catalog.User.name() + "_" + id;
|
||||
redisTemplate.delete(tokenKey + "_n");
|
||||
redisTemplate.delete(tokenKey + "_o");
|
||||
String managerTokenKey = Common.TOKEN + "_" + Catalog.Manager.name() + "_" + id;
|
||||
redisTemplate.delete(managerTokenKey + "_n");
|
||||
redisTemplate.delete(managerTokenKey + "_o");
|
||||
}
|
||||
return new Result(true, "用户退出成功!");
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue