From 768699195bd2a73059fb1029316889255bc28907 Mon Sep 17 00:00:00 2001 From: "Henry.Wang" Date: Mon, 10 Aug 2020 10:56:31 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-36778=20=E3=80=90=E9=85=8D=E5=90=88?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E3=80=91=E7=89=88=E6=9C=AC=E5=8F=B7=E8=A7=84?= =?UTF-8?q?=E8=8C=83FR=E9=80=82=E9=85=8D=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/design/update/push/DesignerUpdateInfo.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }