From 9522649f6b1b90a4cc17012707bb4248a53df811 Mon Sep 17 00:00:00 2001 From: gts3337500 <80728681+gts3337500@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:12:44 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E4=BF=AE=E6=94=B9=E9=80=80=E5=87=BA?= =?UTF-8?q?=E5=A4=84=E7=90=86=E7=B1=BB=E7=9A=84=E6=97=A5=E5=BF=97=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=92=8C=E8=BF=94=E5=9B=9E=E5=86=85=E5=AE=B9=20(#303)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../framework/security/handle/LogoutSuccessHandlerImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/campus-framework/src/main/java/com/oddfar/campus/framework/security/handle/LogoutSuccessHandlerImpl.java b/campus-framework/src/main/java/com/oddfar/campus/framework/security/handle/LogoutSuccessHandlerImpl.java index 193b2e7..2bc1ad3 100644 --- a/campus-framework/src/main/java/com/oddfar/campus/framework/security/handle/LogoutSuccessHandlerImpl.java +++ b/campus-framework/src/main/java/com/oddfar/campus/framework/security/handle/LogoutSuccessHandlerImpl.java @@ -5,6 +5,7 @@ import com.oddfar.campus.common.constant.HttpStatus; import com.oddfar.campus.common.domain.R; import com.oddfar.campus.common.domain.model.LoginUser; +import com.oddfar.campus.common.utils.MessageUtils; import com.oddfar.campus.common.utils.ServletUtils; import com.oddfar.campus.common.utils.StringUtils; import com.oddfar.campus.framework.manager.AsyncFactory; @@ -42,8 +43,8 @@ public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse resp // 删除用户缓存记录 tokenService.delLoginUser(loginUser.getToken()); // 记录用户退出日志 - AsyncManager.me().execute(AsyncFactory.recordLogininfor(loginUser.getUsername(), loginUser.getUserId(), Constants.LOGOUT, "退出成功")); + AsyncManager.me().execute(AsyncFactory.recordLogininfor(loginUser.getUsername(), loginUser.getUserId(), Constants.LOGOUT, MessageUtils.message("user.logout.success"))); } - ServletUtils.renderString(response, JSON.toJSONString(R.error(HttpStatus.SUCCESS, "退出成功"))); + ServletUtils.renderString(response, JSON.toJSONString(R.error(HttpStatus.SUCCESS, MessageUtils.message("user.logout.success")))); } }