Browse Source

REPORT-14865 更新日志推送=>调整代码

research/10.0
plough 6 years ago
parent
commit
d6b79f0742
  1. 7
      designer-base/src/main/java/com/fr/design/update/push/DesignerPushUpdateManager.java

7
designer-base/src/main/java/com/fr/design/update/push/DesignerPushUpdateManager.java

@ -94,7 +94,7 @@ public class DesignerPushUpdateManager {
/** /**
* 检查更新如果有合适的更新版本则弹窗 * 检查更新如果有合适的更新版本则弹窗
*/ */
public void checkAndPop() { private void checkAndPop() {
new Thread() { new Thread() {
@Override @Override
public void run() { public void run() {
@ -111,11 +111,6 @@ public class DesignerPushUpdateManager {
private boolean shouldPopUp() { private boolean shouldPopUp() {
if (updateInfo == null) { if (updateInfo == null) {
String fullCurrentVersion = GeneralUtils.readFullBuildNO(); String fullCurrentVersion = GeneralUtils.readFullBuildNO();
// todo: 开发测试用
if (!fullCurrentVersion.contains(SPLIT_CHAR)) {
fullCurrentVersion = "stable-2019.01.03.17.01.05.257";
}
String fullLatestVersion = getFullLatestVersion(); String fullLatestVersion = getFullLatestVersion();
boolean isValidJarVersion = isValidJarVersion(fullCurrentVersion, fullLatestVersion); boolean isValidJarVersion = isValidJarVersion(fullCurrentVersion, fullLatestVersion);

Loading…
Cancel
Save