2021与蓝度共同重构项目,服务端
zhanzhiqin
2022-05-16 7e335f8fde9e197e11ee5ae33f7a93bc10b0560e
ximon-admin/src/main/java/com/sandu/ximon/admin/controller/AdminController.java
@@ -179,6 +179,8 @@
    @GetMapping(value = "/logout")
    public ResponseVO<Object> LogOut() {
        String content = "用户名:" + SecurityUtils.getUsername();
        StoreOperationRecordsUtils.storeOperationData(null, null, "用户退出登录", content, null);
        String key = String.format("%d_%d", SecurityUtils.getUserDetails().getUserId(), SecurityUtils.getUserDetails().getAdministratorType());
        redisService.set(key, null);
        return ResponseUtil.success("退出登录成功");