diff --git a/designer-base/src/main/java/com/fr/design/os/impl/SupportOSImpl.java b/designer-base/src/main/java/com/fr/design/os/impl/SupportOSImpl.java index 602e1d110d..9bc29b8295 100644 --- a/designer-base/src/main/java/com/fr/design/os/impl/SupportOSImpl.java +++ b/designer-base/src/main/java/com/fr/design/os/impl/SupportOSImpl.java @@ -3,6 +3,8 @@ package com.fr.design.os.impl; import com.fr.base.FRContext; import com.fr.general.CloudCenter; import com.fr.general.GeneralContext; +import com.fr.json.JSON; +import com.fr.json.JSONFactory; import com.fr.json.JSONObject; import com.fr.stable.StringUtils; import com.fr.stable.os.Arch; @@ -59,8 +61,8 @@ public enum SupportOSImpl implements SupportOS { if (StringUtils.isEmpty(resp)) { return Locale.CHINA.equals(GeneralContext.getLocale()); } - JSONObject jo = new JSONObject(resp); - return jo.optBoolean(GeneralContext.getLocale().toString()); + JSONObject jo = JSONFactory.createJSON(JSON.OBJECT, resp); + return jo.getBoolean(GeneralContext.getLocale().toString()); } }, /**