| | |
| | | }
|
| | | 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) {
|
| | |
| | | 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);
|
| | |
|
| | |
| | |
|
| | | 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);
|
| | | }
|
| | |
|