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