yujian
2019-12-03 54c250656c2e471ad48ecaa8ccce16ec9d7eb8bd
fanli/src/main/java/com/yeshi/fanli/util/pinduoduo/PinDuoDuoApiUtil.java
@@ -124,6 +124,17 @@
      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
    * 
@@ -435,7 +446,6 @@
      return null;
   }
   /**
    * 获取商品详情
    * 
@@ -464,7 +474,8 @@
         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);
      }