Browse Source

REPORT-60366 fr11-linux设计器-插件无法在线更新

new-design
Lanlan 3 years ago
parent
commit
ff933895d9
  1. 2
      designer-base/src/main/java/com/fr/design/extra/PluginUtils.java

2
designer-base/src/main/java/com/fr/design/extra/PluginUtils.java

@ -80,11 +80,13 @@ public class PluginUtils {
public static String transPluginsToString(List<PluginContext> plugins) throws Exception { public static String transPluginsToString(List<PluginContext> plugins) throws Exception {
JSONArray jsonArray = new JSONArray(); JSONArray jsonArray = new JSONArray();
for (PluginContext plugin : plugins) { for (PluginContext plugin : plugins) {
if (VersionIntervalType.isSupported(plugin.supportCurrentFRVersion())) {
JSONObject jo = new JSONObject(); JSONObject jo = new JSONObject();
jo.put("id", plugin.getID()); jo.put("id", plugin.getID());
jo.put("version", plugin.getVersion()); jo.put("version", plugin.getVersion());
jsonArray.put(jo); jsonArray.put(jo);
} }
}
return jsonArray.toString(); return jsonArray.toString();
} }

Loading…
Cancel
Save