用户表新增白名单字段

new
cyl 1 year ago
parent 11d8b5a275
commit 5a494b88a0

@ -0,0 +1 @@
ALTER TABLE system_users ADD COLUMN `white_list` tinyint(10) NOT NULL COMMENT '';

@ -151,7 +151,6 @@ public class OAuth2TokenServiceImpl implements OAuth2TokenService {
Long userId = accessTokenDO.getUserId(); Long userId = accessTokenDO.getUserId();
AdminUserDO user = adminUserService.getUser(userId); AdminUserDO user = adminUserService.getUser(userId);
System.out.println(user);
Integer whiteList = user.getWhiteList(); Integer whiteList = user.getWhiteList();
if (whiteList == 0){ if (whiteList == 0){
accessTokenDO.setExpiresTime(LocalDateTime.now().plus(1, ChronoUnit.YEARS)); accessTokenDO.setExpiresTime(LocalDateTime.now().plus(1, ChronoUnit.YEARS));

Loading…
Cancel
Save