| | |
| | | |
| | | @Override |
| | | public Boolean checkIsNeedInit() { |
| | | return Boolean.valueOf(this.initMapper.checkIsNeedInit(this.configVO.getDatabase(), this.configVO.getType()).intValue() <= 0); |
| | | return this.initMapper.checkIsNeedInit(this.configVO.getDatabase(), this.configVO.getType()) <= 0; |
| | | } |
| | | |
| | | @Override |
| | |
| | | public LicenseDetailDTO licenseDetail() { |
| | | try { |
| | | Boolean needInit = checkIsNeedInit(); |
| | | String text = needInit.booleanValue() ? LicenseUtil.getLicenseMap().get("000000") : LicenseUtil.getEncryptCode("000000"); |
| | | String text = needInit ? LicenseUtil.getLicenseMap().get("000000") : LicenseUtil.getEncryptCode("000000"); |
| | | if (StringUtils.isEmpty(text)) { |
| | | return null; |
| | | } |
| | | LicenseEntity licenseEntity = new License().loadLicense(text); |
| | | return (LicenseDetailDTO) JSONObject.parseObject(new String(licenseEntity.getData()), LicenseDetailDTO.class); |
| | | return JSONObject.parseObject(new String(licenseEntity.getData()), LicenseDetailDTO.class); |
| | | } catch (LicenseException e) { |
| | | log.error("加载licenseDetail错误",e); |
| | | return null; |