yujian
2019-07-25 0cc3b905e5945d1b4b02ee5f91a615bcfd8f08d6
fanli/src/main/java/com/yeshi/fanli/util/pinduoduo/PinDuoDuoApiUtil.java
@@ -63,9 +63,7 @@
      }
      if (url.endsWith("&"))
         url = url.substring(0, url.length() - 1);
      String result = HttpUtil.post(url);
      return result;
      return HttpUtil.postSimple(url);
   }
   public static PDDGoodsResult searchGoods(PDDSearchFilter sf) {
@@ -87,6 +85,11 @@
         map.put("cat_id", sf.getCatId() + "");
      if (sf.getKw() != null)
         map.put("keyword", sf.getKw());
      if (sf.getGoodsIdList() != null)
         map.put("goods_id_list", "[" + StringUtil.concat(sf.getGoodsIdList(), ",") + "]");
      System.out.println(sf.getGoodsIdList().toString());
      map.put("pid", PID_FANLI);
      String result = baseRequest(map);
      
@@ -98,7 +101,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);
   }
@@ -116,7 +119,7 @@
      map.put("p_id", pid);
      map.put("multi_group", "true");
      map.put("generate_weapp_webview", "true");
      map.put("generate_weiboapp_webview", "true");
//      map.put("generate_weiboapp_webview", "true");
      JSONArray array = new JSONArray();
      array.add(goodsId);
      map.put("goods_id_list", array.toString());