2
0

fix: license调整

This commit is contained in:
caiyuchao
2025-04-27 17:49:35 +08:00
parent 2da336a69f
commit 0fa1439304

View File

@@ -67,7 +67,7 @@ public class LicenseCheckRunner implements ApplicationRunner {
// startTimer();
this.licenseProperties = licenseProperties;
if (StrUtil.isNotEmpty(licenseProperties.getLicensePath())) {
install();
// install();
try {
String readMd5 = getMd5(licenseProperties.getLicensePath());
isLoad = true;
@@ -135,13 +135,13 @@ public class LicenseCheckRunner implements ApplicationRunner {
//对象序列化为json
String jsonString = serverInfos.toJsonString();
System.out.println("原始数据 = " + jsonString);
// System.out.println("原始数据 = " + jsonString);
//加密
String encryptedJson = LicenseUtils.encrypt(jsonString);
System.out.println("加密后 = " + encryptedJson);
// 解密
String decryptedJson = LicenseUtils.decrypt(encryptedJson);
System.out.println("解密后 = " + decryptedJson);
// System.out.println("解密后 = " + decryptedJson);
// 比较解密后的字符串与原始字符串
if (jsonString.equals(decryptedJson)) {
} else {