自动化立体仓库 - WMS系统
#
zzgtfwq
2 天以前 d854c87dcb5dfc629a7e1e3e8d693271908e592f
src/main/java/com/zy/system/entity/license/LicenseCheckListener.java
@@ -84,9 +84,9 @@
                param.setStorePass(storePass);
                param.setLicensePath(licensePath);
                param.setPublicKeysStorePath(publicKeysStorePath);
//
                LicenseVerify licenseVerify = new LicenseVerify();
//
                LicenseInfos latestLicense = licenseInfosService.getLatestLicense();
                if (latestLicense == null) {
                    logger.info("许可证不存在");
@@ -96,9 +96,11 @@
                //安装证书
                LicenseContent install = licenseVerify.install(param, latestLicense.getLicense());
                logger.info("++++++++ 许可证加载结束 ++++++++");
                licenseTimer.setSystemSupport(install!=null);
//                logger.info("++++++++ 许可证加载结束 ++++++++");
//
//                licenseTimer.setSystemSupport(true);
//                licenseTimer.setLicenseDays(11);
//                return true;
                if (install != null) {
                    Date start = new Date();
@@ -108,9 +110,13 @@
                    Long num = endTime - starTime;//时间戳相差的毫秒数
                    int day = (int) (num / 24 / 60 / 60 / 1000);
                    licenseTimer.setLicenseDays(day);
                    licenseTimer.setSystemSupport(true);
                } else {
                    licenseTimer.setLicenseDays(0);
                    licenseTimer.setSystemSupport(false);
                }
//
//
                return install != null;
            } catch (Exception e) {
                e.printStackTrace();