fanli/src/main/java/com/yeshi/fanli/util/jd/JDUtil.java
@@ -154,6 +154,17 @@ return searchResult; } public static JDGoods getGoodsDetail(Long skuId) { JDSearchFilter sf = new JDSearchFilter(); sf.setKey(skuId + ""); sf.setPageNo(1); sf.setPageSize(20); JDSearchResult result = searchByKey(sf); if (result != null && result.getGoodsList() != null && result.getGoodsList().size() > 0) return result.getGoodsList().get(0); return null; } private static JDGoods parseGoods(String data) { JDGoods goods = new JDGoods(); JSONObject json = JSONObject.fromObject(data);