| | |
| | | goods.setPayRate30(1);
|
| | |
|
| | | if (item.optBoolean("free_shipment"))
|
| | | goods.setFreeShipment(1);
|
| | | goods.setFreeShipment(1); |
| | |
|
| | | if ("1".equalsIgnoreCase(item.optString("material_lib_type")))
|
| | | ;
|
| | | |
| | | goodsList.add(goods);
|
| | | }
|
| | | }
|
| | |
| | | private static TaoBaoGoodsBrief parseWuLiaoItem(JSONObject item) {
|
| | | TaoBaoGoodsBrief goods = new TaoBaoGoodsBrief();
|
| | | goods.setPictUrl(item.optString("pict_url"));
|
| | | |
| | | if (!StringUtil.isNullOrEmpty(item.optString("white_image"))) {
|
| | | goods.setPictUrlWhite(item.optString("white_image"));
|
| | | }
|
| | | |
| | | goods.setAuctionId(item.optLong("num_iid"));
|
| | | goods.setAuctionUrl("https:" + item.optString("url"));
|
| | | goods.setBiz30day(item.optInt("volume"));
|
| | | goods.setCouponInfo(item.optString("coupon_info"));
|
| | | |
| | | if (goods.getCouponInfo() != null)
|
| | | goods.setCouponInfo(goods.getCouponInfo().replace(".00", ""));
|
| | |
|
| | |
| | | map.put("relation_app", "common");
|
| | | JSONObject resultJSON = null;
|
| | | try {
|
| | | TaoKeAppInfo app = new TaoKeAppInfo();
|
| | | TaoKeAppInfo app = new TaoKeAppInfo(); |
| | | app.setAppKey(appKey);
|
| | | app.setAppSecret(appSecret);
|
| | | app.setAppSecret(appSecret); |
| | | resultJSON = TaoKeBaseUtil.baseRequest(map, app);
|
| | | } catch (TaoKeApiException e) {
|
| | | e.printStackTrace();
|