提交 b568d79a authored 作者: 梁业锦's avatar 梁业锦 💬

修复最后的BUG

上级 63f45184
......@@ -139,7 +139,7 @@ public class AdidasSpider implements IItemSpider {
///////////////////////// 获取商品尺码属性 END////////////////////
// 库存对应的id(颜色id + 尺码id)
String skuStr = ";" + colorNo + ";" + size + ";";
String skuStr = ";" + color + ";" + size + ";";
//////////////////////////////////// 获取库存 ////////////////////////////////////////////
// 设置:商品包含库存信息
......
......@@ -4,7 +4,6 @@ import com.diaoyun.zion.chinafrica.bis.IItemSpider;
import com.diaoyun.zion.chinafrica.enums.PlatformEnum;
import com.diaoyun.zion.chinafrica.vo.*;
import com.diaoyun.zion.master.util.HttpClientUtil;
import com.diaoyun.zion.master.util.SpiderUtil;
import com.diaoyun.zion.master.util.TranslateHelper;
import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUtils;
......@@ -91,7 +90,6 @@ public class HmSpider implements IItemSpider {
// 获取原始价
String fullPrice = document.select("meta[property=product:price:amount]").attr("content");
fullPrice = SpiderUtil.retainNumber(fullPrice);
// TODO 转换汇率,目前商品单位是人民币
fullPrice = exchangeRate(fullPrice);
......@@ -106,7 +104,6 @@ public class HmSpider implements IItemSpider {
}
}
for (String url : urlList) {
content = HttpClientUtil.getContentByUrl(url, PlatformEnum.HM.getValue());
......@@ -173,8 +170,6 @@ public class HmSpider implements IItemSpider {
productResponse.setPrice(fullPrice);
productResponse.setSalePrice(fullPrice + "-" + fullPrice);
//////////////////////////////////// 获取原始价 END//////////////////////////////////
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论