| | |
| | | return new PDDGoodsResult(totalCount, goodsList);
|
| | | }
|
| | |
|
| | | public static List<PDDGoodsDetail> listGoodsDetail(List<Long> goodsIds) {
|
| | | PDDSearchFilter filter = new PDDSearchFilter();
|
| | | Long[] ids = new Long[goodsIds.size()];
|
| | | goodsIds.toArray(ids);
|
| | | filter.setGoodsIdList(ids);
|
| | | PDDGoodsResult result = searchGoods(filter);
|
| | | if (result != null)
|
| | | return result.getGoodsList();
|
| | | return null;
|
| | | }
|
| | |
|
| | | /**
|
| | | * 运营频道商品查询API
|
| | | *
|
| | |
| | | return null;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * 获取商品详情
|
| | | *
|
| | |
| | | int totalCount = root.optInt("total");
|
| | |
|
| | | JSONArray array = root.optJSONArray("mall_search_info_vo_list");
|
| | | Type type = new TypeToken<List<PDDShopDetail>>() {}.getType();
|
| | | Type type = new TypeToken<List<PDDShopDetail>>() {
|
| | | }.getType();
|
| | | List<PDDShopDetail> listShop = new Gson().fromJson(array.toString(), type);
|
| | | return new PDDShopResult(totalCount, listShop);
|
| | | }
|