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