|
|
@ -24,6 +24,7 @@ class DesignerUpdateInfo { |
|
|
|
|
|
|
|
|
|
|
|
private final String currentVersion; // 当前版本
|
|
|
|
private final String currentVersion; // 当前版本
|
|
|
|
private final String latestVersion; // 最新版本
|
|
|
|
private final String latestVersion; // 最新版本
|
|
|
|
|
|
|
|
private final String latestFullVersion; // 最新版本的完整信息
|
|
|
|
private final String lastIgnoredVersion; // 最近一次跳过的版本
|
|
|
|
private final String lastIgnoredVersion; // 最近一次跳过的版本
|
|
|
|
|
|
|
|
|
|
|
|
private final String pushVersion; // 推送版本
|
|
|
|
private final String pushVersion; // 推送版本
|
|
|
@ -34,6 +35,7 @@ class DesignerUpdateInfo { |
|
|
|
DesignerUpdateInfo(String currentVersion, String latestVersion, String lastIgnoredVersion, JSONObject pushData) { |
|
|
|
DesignerUpdateInfo(String currentVersion, String latestVersion, String lastIgnoredVersion, JSONObject pushData) { |
|
|
|
this.currentVersion = currentVersion; |
|
|
|
this.currentVersion = currentVersion; |
|
|
|
this.latestVersion = latestVersion; |
|
|
|
this.latestVersion = latestVersion; |
|
|
|
|
|
|
|
this.latestFullVersion = initLatestFullVersion(); |
|
|
|
this.lastIgnoredVersion = lastIgnoredVersion; |
|
|
|
this.lastIgnoredVersion = lastIgnoredVersion; |
|
|
|
|
|
|
|
|
|
|
|
this.pushVersion = pushData.optString(KEY_VERSION); |
|
|
|
this.pushVersion = pushData.optString(KEY_VERSION); |
|
|
@ -65,7 +67,7 @@ class DesignerUpdateInfo { |
|
|
|
return latestVersion; |
|
|
|
return latestVersion; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String getLatestFullVersion() { |
|
|
|
String initLatestFullVersion() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
String url = CloudCenter.getInstance().acquireUrlByKind("jar10.new.update"); |
|
|
|
String url = CloudCenter.getInstance().acquireUrlByKind("jar10.new.update"); |
|
|
|
if (StringUtils.isBlank(url)) { |
|
|
|
if (StringUtils.isBlank(url)) { |
|
|
@ -85,6 +87,10 @@ class DesignerUpdateInfo { |
|
|
|
return StringUtils.EMPTY; |
|
|
|
return StringUtils.EMPTY; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String getLatestFullVersion() { |
|
|
|
|
|
|
|
return latestFullVersion; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String getLastIgnoredVersion() { |
|
|
|
String getLastIgnoredVersion() { |
|
|
|
return lastIgnoredVersion; |
|
|
|
return lastIgnoredVersion; |
|
|
|
} |
|
|
|
} |
|
|
|