智慧保安后台管理-外网项目备份
zhongrj
2025-01-07 05021718a31f30220e1c498a627636fb69c70ae1
取消登录时间限制
1 files modified
36 ■■■■ changed files
src/main/java/org/springblade/modules/auth/endpoint/BladeTokenEndPoint.java 36 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/auth/endpoint/BladeTokenEndPoint.java
@@ -118,15 +118,15 @@
        ITokenGranter granter = TokenGranterBuilder.getGranter(grantType);
        UserInfo userInfo = granter.grant(tokenParameter);
        try {
            Long parse = new SimpleDateFormat("yyyy-MM-dd").parse("2024-12-30").getTime();
            long now= System.currentTimeMillis();
            if (parse < now){
                throw new ServiceException("系统繁忙");
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
//        try {
//            Long parse = new SimpleDateFormat("yyyy-MM-dd").parse("2024-12-30").getTime();
//            long now= System.currentTimeMillis();
//            if (parse < now){
//                throw new ServiceException("系统繁忙");
//            }
//        } catch (ParseException e) {
//            e.printStackTrace();
//        }
        //校验
@@ -216,15 +216,15 @@
        ITokenGranter granter = TokenGranterBuilder.getGranter(grantType);
        try {
            Long parse = new SimpleDateFormat("yyyy-MM-dd").parse("2024-12-30").getTime();
            long now= System.currentTimeMillis();
            if (parse < now){
                throw new ServiceException("系统繁忙");
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
//        try {
//            Long parse = new SimpleDateFormat("yyyy-MM-dd").parse("2024-12-30").getTime();
//            long now= System.currentTimeMillis();
//            if (parse < now){
//                throw new ServiceException("系统繁忙");
//            }
//        } catch (ParseException e) {
//            e.printStackTrace();
//        }
        UserInfo userInfo = granter.grant(tokenParameter);