提交 cef2e992 authored 作者: luojie's avatar luojie

修改ZARA

上级 3d6db1de
...@@ -88,7 +88,6 @@ public class ZaraSpider implements IItemSpider { ...@@ -88,7 +88,6 @@ public class ZaraSpider implements IItemSpider {
// 取 detailImagesArr 节点数组第一个对象 // 取 detailImagesArr 节点数组第一个对象
JSONObject detailImagesObj_0 = colorsObj.getJSONArray("detailImages").getJSONObject(0); JSONObject detailImagesObj_0 = colorsObj.getJSONArray("detailImages").getJSONObject(0);
String colorNo = colorsObj.getString("productId");
String color = colorsObj.getString("name"); String color = colorsObj.getString("name");
String imageUrl = "http://static.zara.cn/photos//" String imageUrl = "http://static.zara.cn/photos//"
+ detailImagesObj_0.getString("path") + detailImagesObj_0.getString("path")
...@@ -103,7 +102,7 @@ public class ZaraSpider implements IItemSpider { ...@@ -103,7 +102,7 @@ public class ZaraSpider implements IItemSpider {
//////////////////////////////////// 获取商品颜色属性 //////////////////////////////////////////// //////////////////////////////////// 获取商品颜色属性 ////////////////////////////////////////////
ProductProp productPropColor = new ProductProp(); ProductProp productPropColor = new ProductProp();
productPropColor.setPropId(colorNo); productPropColor.setPropId(color);
productPropColor.setPropName(color); productPropColor.setPropName(color);
productPropColor.setImage(imageUrl); productPropColor.setImage(imageUrl);
propSet.add(productPropColor); propSet.add(productPropColor);
...@@ -141,7 +140,7 @@ public class ZaraSpider implements IItemSpider { ...@@ -141,7 +140,7 @@ public class ZaraSpider implements IItemSpider {
///////////////////////// 获取商品尺码属性 END//////////////////// ///////////////////////// 获取商品尺码属性 END////////////////////
// 库存对应的id(Zara 中以颜色id + 尺码id) // 库存对应的id(Zara 中以颜色id + 尺码id)
String skuStr = ";" + colorNo + ";" + size + ";"; String skuStr = ";" + color + ";" + size + ";";
//////////////////////////////////// 获取库存 //////////////////////////////////////////// //////////////////////////////////// 获取库存 ////////////////////////////////////////////
if (productSkuStockList == null) { if (productSkuStockList == null) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论