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 cf82268294..56e28c5fe5 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 @@ -3,6 +3,8 @@ package com.fr.design.update.push; import com.fr.general.CloudCenter; import com.fr.general.ComparatorUtils; import com.fr.general.http.HttpToolbox; +import com.fr.json.JSON; +import com.fr.json.JSONFactory; import com.fr.json.JSONObject; import com.fr.log.FineLoggerFactory; import com.fr.stable.StringUtils; @@ -73,8 +75,9 @@ class DesignerUpdateInfo { if (StringUtils.isBlank(res)) { return StringUtils.EMPTY; } - String version = new JSONObject(res).optString("version"); - String build = new JSONObject(res).optString("build"); + JSONObject jsonObject = JSONFactory.createJSON(JSON.OBJECT, res); + String version = jsonObject.getString("version"); + String build = jsonObject.getString("build"); return version + SPLIT_CHAR + build; } catch (Throwable e) { FineLoggerFactory.getLogger().error(e.getMessage(), e);