yujian
2019-08-16 e97b71caed03d1f1aa3ae21b1ea0deac4dd9ffe0
fanli/src/main/java/com/yeshi/fanli/util/jd/JDApiUtil.java
@@ -51,8 +51,6 @@
   public static int ORDER_TYPE_FINISHTIME = 2;// 完成时间
   public static int ORDER_TYPE_UPDATETIME = 3;// 更新时间
   private static String post2(String url, Map<String, String> params) {
      String baseUrl = url;
      List<String> paramsList = new ArrayList<>();
@@ -172,6 +170,19 @@
            return list.get(0);
      }
      return null;
   }
   /**
    * 通过商品搜索接口批量获取详情
    *
    * @param skuIds
    * @return
    */
   public static List<JDGoods> listGoodsDetail(List<Long> skuIds) {
      JDFilter filter = new JDFilter();
      filter.setListId(skuIds);
      JDSearchResult result = queryByKey(filter);
      return result.getGoodsList();
   }
   /**
@@ -610,8 +621,8 @@
      if (root.optInt("code") == 0) {
         boolean hasMore = root.optBoolean("hasMore");
         root = JSONObject.fromObject(root.optString("result"));
         if (root.optInt("code") == 200&&root.optJSONArray("data")!=null) {
         if (root.optInt("code") == 200 && root.optJSONArray("data") != null) {
            String date = root.optJSONArray("data").toString();
            Type typeToken = new TypeToken<List<JDOrder>>() {
            }.getType();