外部服务参数类型兼容

20230922-ljl-fixBug
wangchaoxu 1 year ago
parent 530e0d60cb
commit 41a555324e

@ -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());

Loading…
Cancel
Save