智慧保安后台管理-外网项目备份
zhongrj
2024-03-25 2ea0741301be88b5bc05db8de8f973d21de5d57e
到期限制去除
1 files modified
18 ■■■■ changed files
src/main/java/org/springblade/modules/auth/endpoint/BladeTokenEndPoint.java 18 ●●●● 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-04-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-04-30").getTime();
//            long now= System.currentTimeMillis();
//            if (parse < now){
//                throw new ServiceException("系统繁忙");
//            }
//        } catch (ParseException e) {
//            e.printStackTrace();
//        }
        //校验