| | |
| | | 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());
|
| | |
| | | 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;
|
| | | }
|