yujian
2019-03-15 585a05bef033fa4b6a02b5d3afd3b305b3914abb
fanli/src/main/java/com/yeshi/fanli/util/taobao/TaoBaoUtil.java
@@ -693,7 +693,10 @@
      tg.setBiz30day(tb.getBiz30day());
      tg.setSalesCount(TaoBaoUtil.getSaleCount(tb.getBiz30day()));
      tg.setTitle(tb.getTitle());
      tg.setPictUrl(TbImgUtil.getTBSize320Img(tb.getPictUrl()));
      if (!StringUtil.isNullOrEmpty(tb.getPictUrlWhite()))
         tg.setPictUrl(TbImgUtil.getTBSize320Img(tb.getPictUrlWhite()));
      else
         tg.setPictUrl(TbImgUtil.getTBSize320Img(tb.getPictUrl()));
      tg.setZkPrice(tb.getZkPrice());
      tg.setAuctionUrl(tb.getAuctionUrl());
      tg.setReservePrice(tb.getReservePrice());
@@ -1757,12 +1760,11 @@
         TaoBaoGoodsBrief goods = new TaoBaoGoodsBrief();
         goods.setAuctionId(item.optLong("itemId"));
         goods.setTitle(item.optString("title"));
         if (item.optJSONArray("images") != null && item.optJSONArray("images").size() > 0)
         {
            String picture=item.optJSONArray("images").optString(0);
            goods.setPictUrl(picture.startsWith("http")?picture:"https:"+picture);
         if (item.optJSONArray("images") != null && item.optJSONArray("images").size() > 0) {
            String picture = item.optJSONArray("images").optString(0);
            goods.setPictUrl(picture.startsWith("http") ? picture : "https:" + picture);
         }
            goods.setSellerId(seller.optLong("shopId"));
         goods.setSellerId(seller.optLong("shopId"));
         goods.setShopTitle(seller.optString("shopName"));
         return goods;
      }