退出接口修改-只要退出用户端和管理端同时退出

develop
guyuliang 2024-08-22 14:41:02 +08:00
parent 450736216f
commit 38574a6172
1 changed files with 3 additions and 0 deletions

View File

@ -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) {