|
|
|
@ -66,7 +66,7 @@ public class GetRecommendProductListService extends SPIBaseService implements Ex
|
|
|
|
|
// categoryName="女装";
|
|
|
|
|
double maxPercent = 0;
|
|
|
|
|
String maxPercentName = "";
|
|
|
|
|
String maxPercentCid = "";
|
|
|
|
|
String maxPercentCid = "1813"; // 随便默认一个
|
|
|
|
|
for (int i = 0; i < dsCateLeafArray.size(); ++i) {
|
|
|
|
|
JSONObject dsCateLeaf = dsCateLeafArray.getJSONObject(i);
|
|
|
|
|
String dsCateName = dsCateLeaf.getString("name");
|
|
|
|
@ -83,7 +83,7 @@ public class GetRecommendProductListService extends SPIBaseService implements Ex
|
|
|
|
|
// 匹配到的最终类目,每个查询N个
|
|
|
|
|
HashMap<String, Object> params = new HashMap<>();
|
|
|
|
|
// params.put("keyword",fields.getKeyword());
|
|
|
|
|
params.put("topCid", maxPercentCid);
|
|
|
|
|
params.put("topCid", Long.valueOf(maxPercentCid));
|
|
|
|
|
// params.put("cid", maxPercentCid);
|
|
|
|
|
params.put("sort", "saleCntDesc");
|
|
|
|
|
// params.put("ruleIds", fields.getRuleIds());
|
|
|
|
|