From 5a494b88a07a27f3126ba7425d81eaff7e816b92 Mon Sep 17 00:00:00 2001 From: chiyilin <2449182606@qq.com> Date: Fri, 10 Nov 2023 13:33:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=A1=A8=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=99=BD=E5=90=8D=E5=8D=95=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/231110CYL.sql | 1 + .../module/system/service/oauth2/OAuth2TokenServiceImpl.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 sql/231110CYL.sql diff --git a/sql/231110CYL.sql b/sql/231110CYL.sql new file mode 100644 index 00000000..8e303770 --- /dev/null +++ b/sql/231110CYL.sql @@ -0,0 +1 @@ +ALTER TABLE system_users ADD COLUMN `white_list` tinyint(10) NOT NULL COMMENT '白名单'; diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/oauth2/OAuth2TokenServiceImpl.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/oauth2/OAuth2TokenServiceImpl.java index c95d471f..35720f97 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/oauth2/OAuth2TokenServiceImpl.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/oauth2/OAuth2TokenServiceImpl.java @@ -151,7 +151,6 @@ public class OAuth2TokenServiceImpl implements OAuth2TokenService { Long userId = accessTokenDO.getUserId(); AdminUserDO user = adminUserService.getUser(userId); - System.out.println(user); Integer whiteList = user.getWhiteList(); if (whiteList == 0){ accessTokenDO.setExpiresTime(LocalDateTime.now().plus(1, ChronoUnit.YEARS));