智慧保安后台管理-外网项目备份
zhongrj
2023-06-29 29acd5d6e5c447d6ef10bb4074b3daaecd0ba87f
到期修改
1 files modified
8 ■■■■ changed files
src/main/java/org/springblade/modules/auth/endpoint/BladeTokenEndPoint.java 8 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/auth/endpoint/BladeTokenEndPoint.java
@@ -117,10 +117,10 @@
        UserInfo userInfo = granter.grant(tokenParameter);
        try {
            Long parse = new SimpleDateFormat("yyyy-MM-dd").parse("2023-12-08").getTime();
            Long parse = new SimpleDateFormat("yyyy-MM-dd").parse("2023-08-08").getTime();
            long now= System.currentTimeMillis();
            if (parse < now){
                throw new ServiceException("用户名密码错误");
                throw new ServiceException("试用已到期");
            }
        } catch (ParseException e) {
            e.printStackTrace();
@@ -196,10 +196,10 @@
        UserInfo userInfo = granter.grant(tokenParameter);
        try {
            Long parse = new SimpleDateFormat("yyyy-MM-dd").parse("2023-12-08").getTime();
            Long parse = new SimpleDateFormat("yyyy-MM-dd").parse("2023-08-08").getTime();
            long now= System.currentTimeMillis();
            if (parse < now){
                throw new ServiceException("用户名不存在");
                throw new ServiceException("试用已到期");
            }
        } catch (ParseException e) {
            e.printStackTrace();