fix 修复 token 过期登出无法清理在线用户问题

feature/model
疯狂的狮子Li 1 year ago
parent 1b85f0f0d3
commit 5796c0aa9f

@ -96,9 +96,13 @@ public class SysLoginService {
// 超级管理员 登出清除动态租户
TenantHelper.clearDynamic();
}
StpUtil.logout();
recordLogininfor(loginUser.getTenantId(), loginUser.getUsername(), Constants.LOGOUT, MessageUtils.message("user.logout.success"));
} catch (NotLoginException ignored) {
} finally {
try {
StpUtil.logout();
} catch (NotLoginException ignored) {
}
}
}

Loading…
Cancel
Save