Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
sts网站
Commits
e9ae7ae5
Unverified
Commit
e9ae7ae5
authored
Jan 05, 2024
by
若依
Committed by
Gitee
Jan 05, 2024
Browse files
Options
Browse Files
Download
Plain Diff
!825 update: 修改退出处理类的日志记录和返回内容
Merge pull request !825 from 致远/master
parents
a7bfd3b2
3cc6fb55
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
LogoutSuccessHandlerImpl.java
...i/framework/security/handle/LogoutSuccessHandlerImpl.java
+3
-2
No files found.
ruoyi-framework/src/main/java/com/ruoyi/framework/security/handle/LogoutSuccessHandlerImpl.java
View file @
e9ae7ae5
...
...
@@ -12,6 +12,7 @@ import com.alibaba.fastjson2.JSON;
import
com.ruoyi.common.constant.Constants
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.core.domain.model.LoginUser
;
import
com.ruoyi.common.utils.MessageUtils
;
import
com.ruoyi.common.utils.ServletUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.framework.manager.AsyncManager
;
...
...
@@ -45,8 +46,8 @@ public class LogoutSuccessHandlerImpl implements LogoutSuccessHandler
// 删除用户缓存记录
tokenService
.
delLoginUser
(
loginUser
.
getToken
());
// 记录用户退出日志
AsyncManager
.
me
().
execute
(
AsyncFactory
.
recordLogininfor
(
userName
,
Constants
.
LOGOUT
,
"退出成功"
));
AsyncManager
.
me
().
execute
(
AsyncFactory
.
recordLogininfor
(
userName
,
Constants
.
LOGOUT
,
MessageUtils
.
message
(
"user.logout.success"
)
));
}
ServletUtils
.
renderString
(
response
,
JSON
.
toJSONString
(
AjaxResult
.
success
(
"退出成功"
)));
ServletUtils
.
renderString
(
response
,
JSON
.
toJSONString
(
AjaxResult
.
success
(
MessageUtils
.
message
(
"user.logout.success"
)
)));
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment