Browse Source

REPORT-86430 AlphaFine插件中心tab页显示内容有误

newui
Yann 2 years ago
parent
commit
d9dcb7f4f0
  1. 12
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/PluginSearchManager.java

12
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/PluginSearchManager.java

@ -44,6 +44,7 @@ public class PluginSearchManager implements AlphaFineSearchProvider {
private static final String TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
private static final String UPLOAD_TIME = "uploadTime";
private static final String CURRENT_VERSION = "v11";
private PluginSearchManager() {
@ -218,8 +219,15 @@ public class PluginSearchManager implements AlphaFineSearchProvider {
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e, e.getMessage());
}
for (int i = 0; i < DEFAULT_LIST_SIZE; i++) {
pluginModels.add(getPluginModel(new JSONObject(jsonObjects.get(i)), false));
int pluginModelsCount = 0;
for (Map obj : jsonObjects) {
if (pluginModelsCount == DEFAULT_LIST_SIZE) {
break;
}
if (((Integer) obj.get(CURRENT_VERSION)) == 1) {
pluginModels.add(getPluginModel(new JSONObject(obj), false));
pluginModelsCount++;
}
}
}
return pluginModels;

Loading…
Cancel
Save