Showing
1 changed file
with
5 additions
and
1 deletions
@@ -211,11 +211,15 @@ public class ProductSearchServiceImpl implements ProductSearchService { | @@ -211,11 +211,15 @@ public class ProductSearchServiceImpl implements ProductSearchService { | ||
211 | brandFilterItem.setMultiSelect(false); | 211 | brandFilterItem.setMultiSelect(false); |
212 | 212 | ||
213 | List<FilterItem.Item> itemList = new ArrayList<>(); | 213 | List<FilterItem.Item> itemList = new ArrayList<>(); |
214 | + String brandLogo; | ||
214 | for (Object brand : brandArray) { | 215 | for (Object brand : brandArray) { |
215 | FilterItem.Item item = new FilterItem.Item(); | 216 | FilterItem.Item item = new FilterItem.Item(); |
216 | item.setItemName(((JSONObject)brand).getString("brand_name")); | 217 | item.setItemName(((JSONObject)brand).getString("brand_name")); |
217 | item.setItemId(((JSONObject)brand).getString("id")); | 218 | item.setItemId(((JSONObject)brand).getString("id")); |
218 | - item.setItemUrl(((JSONObject)brand).getString("brand_logo")); | 219 | + |
220 | + brandLogo = ((JSONObject)brand).getString("brand_logo"); | ||
221 | + | ||
222 | + item.setItemUrl(ImageUrlAssist.getAllProductPicUrl(brandLogo, "brandLogo", "center", "d2hpdGU="))); | ||
219 | itemList.add(item); | 223 | itemList.add(item); |
220 | } | 224 | } |
221 | brandFilterItem.setItemList(itemList); | 225 | brandFilterItem.setItemList(itemList); |
-
Please register or login to post a comment