| | |
| | | g.setId(goods.getAuctionId());
|
| | | g.setCreatetime(new Date());
|
| | | g.setMaterialLibType(goods.getMaterialLibType());
|
| | | g.setProvcity(goods.getProvcity());
|
| | | return g;
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | g.setCreatetime(new Date());
|
| | | g.setMaterialLibType(goods.getMaterialLibType());
|
| | | g.setProvcity(goods.getProvcity());
|
| | | return g;
|
| | | }
|
| | | }
|
| | |
| | | goods.setSellerId(item.optLong("seller_id"));
|
| | | goods.setShopTitle(item.optString("shop_title"));
|
| | | goods.setTitle(item.optString("title"));
|
| | | goods.setProvcity(item.optString("provcity"));
|
| | |
|
| | | if (!StringUtil.isNullOrEmpty(item.optString("level_one_category_id"))) {
|
| | | goods.setRootCatId(item.optInt("level_one_category_id"));
|
| | |
| | | Map<String, String> map = new HashMap<>();
|
| | | map.put("method", "taobao.tbk.item.click.extract");
|
| | | map.put("click_url", link + "");
|
| | |
|
| | | TaoKeAppInfo app = new TaoKeAppInfo(TaoBaoConstant.TAOBAO_AUTH_APPKEY, TaoBaoConstant.TAOBAO_AUTH_APPSECRET,
|
| | | TaoBaoConstant.TAOBAO_RELATION_AS_SPECIAL_PID);
|
| | | JSONObject resultJSON = null;
|
| | | try {
|
| | | resultJSON = TaoKeBaseUtil.baseRequest(map, true);
|
| | | resultJSON = TaoKeBaseUtil.baseRequest(map, app);
|
| | | System.out.println(resultJSON);
|
| | | } catch (TaoKeApiException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
| | | goods.setSellerId(item.optLong("seller_id"));
|
| | | goods.setShopTitle(item.optString("shop_title"));
|
| | | goods.setTitle(item.optString("title"));
|
| | | goods.setProvcity(item.optString("provcity"));
|
| | |
|
| | | if (!StringUtil.isNullOrEmpty(item.optString("level_one_category_id"))) {
|
| | | goods.setRootCatId(item.optInt("level_one_category_id"));
|