Browse Source

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

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

7
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);

Loading…
Cancel
Save