Authored by mali

闲鱼展示全品类

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