|
|
@ -200,11 +200,7 @@ public class PluginSearchManager implements AlphaFineSearchProvider { |
|
|
|
List<PluginModel> parseDefaultPluginModel(List<Map> jsonObjects) { |
|
|
|
List<PluginModel> parseDefaultPluginModel(List<Map> jsonObjects) { |
|
|
|
List<PluginModel> pluginModels = new ArrayList<>(); |
|
|
|
List<PluginModel> pluginModels = new ArrayList<>(); |
|
|
|
if (!Collections.isEmpty(jsonObjects)) { |
|
|
|
if (!Collections.isEmpty(jsonObjects)) { |
|
|
|
try { |
|
|
|
|
|
|
|
jsonObjects.sort(PluginSearchManager::sortPluginByUploadTime); |
|
|
|
jsonObjects.sort(PluginSearchManager::sortPluginByUploadTime); |
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error(e, e.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
int pluginModelsCount = 0; |
|
|
|
int pluginModelsCount = 0; |
|
|
|
String version = "v" + ProductConstants.MAIN_VERSION; |
|
|
|
String version = "v" + ProductConstants.MAIN_VERSION; |
|
|
|
for (Map obj : jsonObjects) { |
|
|
|
for (Map obj : jsonObjects) { |
|
|
|