Authored by saihide

fix

... ... @@ -65,15 +65,17 @@ public class SceneRecommendBrandsService {
}
public void getRecommendBrands(Map<String, String> paramMap, SearchApiResult result) {
if (result != null && result.getData() != null) {
JSONObject data = (JSONObject)result.getData();
JSONObject commonFilters = data.getJSONObject("filter");
if (commonFilters != null) {
JSONArray recommendBrands = new JSONArray();
JSONArray brandList = commonFilters.getJSONArray("brand");
if (!CollectionUtils.isEmpty(brandList)) {
JSONArray recommendBrands = getRecommendBrands(paramMap, brandList);
commonFilters.put("recommendBrand", recommendBrands);
recommendBrands = getRecommendBrands(paramMap, brandList);
}
commonFilters.put("recommendBrand", recommendBrands);
}
}
}
... ...