yujian
2019-07-23 a39422f2a8ce45dd6cf65701ed5f9e65391c46c1
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);
   }