Преглед на файлове

修改密钥文件错误信息

wangpenghui преди 10 месеца
родител
ревизия
15b70bd682
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      pdf-tech-core/src/main/java/cn/kdan/pdf/tech/core/utils/KeyFileParseUtils.java

+ 2 - 2
pdf-tech-core/src/main/java/cn/kdan/pdf/tech/core/utils/KeyFileParseUtils.java

@@ -45,13 +45,13 @@ public class KeyFileParseUtils {
         String users = properties.getProperty("Users");
         Sign sign = JsonUtils.jsonStringToBean(signJsonStr, Sign.class);
         if (!Objects.deepEquals(ServerUtils.getDeviceId(),serverID)) {
-            throw new BackendRuntimeException("The key file signature is invalid.");
+            throw new BackendRuntimeException("Server ID Error. Please check your Key File.");
         }
         if (!(Objects.deepEquals(sign.getServerID(),serverID)
                 && Objects.deepEquals(sign.getLicenseDate(),licenseDate)
                 && Objects.deepEquals(sign.getExpireDate(),expireDate)
                 && Objects.deepEquals(sign.getUsers(),users))) {
-            throw new BackendRuntimeException("The key file signature is invalid.");
+            throw new BackendRuntimeException("Signature invalid. Please check your Key File.");
         }
         FileContent fileContent = new FileContent();
         // 是否是更新?