Prechádzať zdrojové kódy

修改密钥文件错误信息

wangpenghui 10 mesiacov pred
rodič
commit
15b70bd682

+ 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();
         // 是否是更新?