| | |
| | | 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(); |
| | |
| | | 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(); |