From a39422f2a8ce45dd6cf65701ed5f9e65391c46c1 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期二, 23 七月 2019 11:03:35 +0800 Subject: [PATCH] Merge branch 'div' of ssh://193.112.35.168:29418/fanli-server into div --- fanli/src/main/java/com/yeshi/fanli/util/pinduoduo/PinDuoDuoApiUtil.java | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/util/pinduoduo/PinDuoDuoApiUtil.java b/fanli/src/main/java/com/yeshi/fanli/util/pinduoduo/PinDuoDuoApiUtil.java index 44f3132..64f2852 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/pinduoduo/PinDuoDuoApiUtil.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/pinduoduo/PinDuoDuoApiUtil.java @@ -10,8 +10,6 @@ import java.util.List; import java.util.Map; -import org.apache.commons.httpclient.HttpClient; -import org.apache.commons.httpclient.methods.PostMethod; import org.yeshi.utils.HttpUtil; import com.google.gson.Gson; @@ -87,6 +85,10 @@ map.put("cat_id", sf.getCatId() + ""); if (sf.getKw() != null) map.put("keyword", sf.getKw()); + if (sf.getGoodsIdList() != null) + map.put("goods_id_list", sf.getGoodsIdList().toString()); + + map.put("pid", PID_FANLI); String result = baseRequest(map); @@ -98,7 +100,7 @@ Gson gson = new GsonBuilder().disableHtmlEscaping().create(); List<PDDGoodsDetail> goodsList = gson.fromJson(array.toString(), type); - int totalCount = json.optInt("total_count"); + int totalCount = root.optInt("total_count"); return new PDDGoodsResult(totalCount, goodsList); } -- Gitblit v1.8.0