| | |
| | | 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(); |
| | | // } |
| | | |
| | | |
| | | //校验 |