2021与蓝度共同重构项目,服务端
zhanzhiqin
2022-05-16 60b9e637d693f8d1c3a5dee7cfb8ff8575bf5dac
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("退出登录成功");