|
@@ -45,13 +45,13 @@ public class KeyFileParseUtils {
|
|
String users = properties.getProperty("Users");
|
|
String users = properties.getProperty("Users");
|
|
Sign sign = JsonUtils.jsonStringToBean(signJsonStr, Sign.class);
|
|
Sign sign = JsonUtils.jsonStringToBean(signJsonStr, Sign.class);
|
|
if (!Objects.deepEquals(ServerUtils.getDeviceId(),serverID)) {
|
|
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)
|
|
if (!(Objects.deepEquals(sign.getServerID(),serverID)
|
|
&& Objects.deepEquals(sign.getLicenseDate(),licenseDate)
|
|
&& Objects.deepEquals(sign.getLicenseDate(),licenseDate)
|
|
&& Objects.deepEquals(sign.getExpireDate(),expireDate)
|
|
&& Objects.deepEquals(sign.getExpireDate(),expireDate)
|
|
&& Objects.deepEquals(sign.getUsers(),users))) {
|
|
&& 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();
|
|
FileContent fileContent = new FileContent();
|
|
// 是否是更新?
|
|
// 是否是更新?
|