From 784c6a9464e10e85ae120c50053eab77d178ab3f Mon Sep 17 00:00:00 2001 From: mroldx <974751082@qq.com> Date: Mon, 13 Jun 2022 17:16:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=B3=A8=E9=94=80=E6=97=B6=EF=BC=8C=E6=B2=A1=E6=9C=89=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=B3=A8=E9=94=80=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/auth/controller/TokenController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ruoyi-auth/src/main/java/com/ruoyi/auth/controller/TokenController.java b/ruoyi-auth/src/main/java/com/ruoyi/auth/controller/TokenController.java index fedadfd8..d0c7c9eb 100644 --- a/ruoyi-auth/src/main/java/com/ruoyi/auth/controller/TokenController.java +++ b/ruoyi-auth/src/main/java/com/ruoyi/auth/controller/TokenController.java @@ -83,8 +83,9 @@ public class TokenController { @DeleteMapping("logout") public R logout() { try { + String username = LoginHelper.getUsername(); StpUtil.logout(); - sysLoginService.logout(LoginHelper.getUsername()); + sysLoginService.logout(username); } catch (NotLoginException e) { } return R.ok();