Authored by mali

空间名称:yhb-img01

... ... @@ -211,11 +211,15 @@ public class ProductSearchServiceImpl implements ProductSearchService {
brandFilterItem.setMultiSelect(false);
List<FilterItem.Item> itemList = new ArrayList<>();
String brandLogo;
for (Object brand : brandArray) {
FilterItem.Item item = new FilterItem.Item();
item.setItemName(((JSONObject)brand).getString("brand_name"));
item.setItemId(((JSONObject)brand).getString("id"));
item.setItemUrl(((JSONObject)brand).getString("brand_logo"));
brandLogo = ((JSONObject)brand).getString("brand_logo");
item.setItemUrl(ImageUrlAssist.getAllProductPicUrl(brandLogo, "brandLogo", "center", "d2hpdGU=")));
itemList.add(item);
}
brandFilterItem.setItemList(itemList);
... ...