Authored by mali

闲鱼展示全品类

... ... @@ -161,9 +161,9 @@ public class ProductSearchServiceImpl implements ProductSearchService {
@Override
public JSONObject searchProductList(ProductSearchReq req) {
SearchParam searchParam = new SearchParam().buildPageSearchParam(req);
if (req.getMidSort() == null && req.getMidSort() == null) {
/*if (req.getMidSort() == null && req.getMidSort() == null) {
searchParam.setXianYuSort(req.getBusinessClient(), configReader);
}
}*/
// searchType:0,推荐;1,热销;
// 2,即将发售; *
// 3,品类; 4,品牌;5,系列;
... ... @@ -351,9 +351,9 @@ public class ProductSearchServiceImpl implements ProductSearchService {
req.setNot_id(info.getExcludeProductIds());
}
SearchParam searchParam = new SearchParam().buildSearchParam(req);
if (req.getMaxSort() == null && req.getMidSort() == null) {
/*if (req.getMaxSort() == null && req.getMidSort() == null) {
searchParam.setXianYuSort(req.getBusinessClient(), configReader);
}
}*/
JSONObject data = search(searchParam.getParam(), FILTER_LIST_URL);
SearchProductListFilterResp resp = new SearchProductListFilterResp();
if (data != null) {
... ... @@ -454,7 +454,7 @@ public class ProductSearchServiceImpl implements ProductSearchService {
public SearchBrandListResp searchBrandList(String businessClient) {
SearchBrandListResp resp = new SearchBrandListResp();
SearchParam searchParam = new SearchParam();
searchParam.setXianYuSort(businessClient, configReader); // 如果是闲鱼请求,则设置大品类
//searchParam.setXianYuSort(businessClient, configReader); //闲鱼改成全品类 如果是闲鱼请求,则设置大品类
JSONObject data = search(searchParam.getParam(), BRAND_LIST_URL);
if(data != null && !CollectionUtils.isEmpty(data.getJSONArray("brand_list"))) {
... ...