Browse Source

REPORT-36778 【配合平台】版本号规范FR适配任务

feature/big-screen
Henry.Wang 4 years ago
parent
commit
768699195b
  1. 4
      designer-base/src/main/java/com/fr/design/update/push/DesignerUpdateInfo.java

4
designer-base/src/main/java/com/fr/design/update/push/DesignerUpdateInfo.java

@ -17,6 +17,8 @@ class DesignerUpdateInfo {
private static final String KEY_CONTENT = "content";
private static final String KEY_BACKGROUND_URL = "background";
private static final String KEY_MORE_INFO_URL = "more";
private static final String SPLIT_CHAR = "-";
private final String currentVersion; // 当前版本
private final String latestVersion; // 最新版本
@ -73,7 +75,7 @@ class DesignerUpdateInfo {
}
String version = new JSONObject(res).optString("version");
String build = new JSONObject(res).optString("build");
return version + "-" + build;
return version + SPLIT_CHAR + build;
} catch (Throwable e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
}

Loading…
Cancel
Save