|
|
@ -43,6 +43,8 @@ public class LogoutSuccessHandlerImpl implements LogoutSuccessHandler |
|
|
|
if (StringUtils.isNotNull(loginUser)) |
|
|
|
if (StringUtils.isNotNull(loginUser)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
String userName = loginUser.getUsername(); |
|
|
|
String userName = loginUser.getUsername(); |
|
|
|
|
|
|
|
// 删除用户缓存记录
|
|
|
|
|
|
|
|
tokenService.delLoginUser(loginUser.getToken()); |
|
|
|
// 记录用户退出日志
|
|
|
|
// 记录用户退出日志
|
|
|
|
AsyncManager.me().execute(AsyncFactory.recordLogininfor(userName, Constants.LOGOUT, "退出成功")); |
|
|
|
AsyncManager.me().execute(AsyncFactory.recordLogininfor(userName, Constants.LOGOUT, "退出成功")); |
|
|
|
} |
|
|
|
} |
|
|
|