diff --git a/designer-base/src/main/java/com/fr/design/update/push/DesignerUpdateInfo.java b/designer-base/src/main/java/com/fr/design/update/push/DesignerUpdateInfo.java index fda62cab29..cf82268294 100644 --- a/designer-base/src/main/java/com/fr/design/update/push/DesignerUpdateInfo.java +++ b/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); }