|
|
@@ -627,7 +627,7 @@ class OnlineDataRequest(object):
|
|
|
for skuIdx, sku_data in enumerate(sku_list_basic):
|
|
|
sku_goods_art_no = sku_data.get("货号", "")
|
|
|
color_name = sku_data.get("颜色名称", "")
|
|
|
- size = sku_data.get("尺码", 37)
|
|
|
+ size = sku_data.get("尺寸", 37)
|
|
|
# 尺码
|
|
|
mainImages = sku_data.get("800x800", [])
|
|
|
if not mainImages:
|
|
|
@@ -635,7 +635,13 @@ class OnlineDataRequest(object):
|
|
|
success_goods_arts.append(sku_goods_art_no)
|
|
|
mainImagePath = mainImages[0]
|
|
|
imageUrl = self.uploadImage(local_path=mainImagePath)
|
|
|
+ skuNameJson = []
|
|
|
+ skuNameJson.append({"propName":"颜色","propValue":color_name})
|
|
|
+ skuNameJson.append({"propName":"尺寸","propValue":size})
|
|
|
skuItemData = {
|
|
|
+ "颜色": color_name,
|
|
|
+ "尺寸": size,
|
|
|
+ "skuPropName":color_name,
|
|
|
"skuNo": sku_goods_art_no,
|
|
|
"originalPrice": float(goods_price),
|
|
|
"newSkuWeight": int(1),
|
|
|
@@ -644,6 +650,7 @@ class OnlineDataRequest(object):
|
|
|
"sellingPrice": float(goods_price),
|
|
|
"quantity": int(quantity),
|
|
|
"showOrder": int(skuIdx + 1),
|
|
|
+ "skuNameJson":skuNameJson
|
|
|
}
|
|
|
skuList.append(skuItemData)
|
|
|
itemImage = {
|
|
|
@@ -680,10 +687,6 @@ class OnlineDataRequest(object):
|
|
|
"propShowOrder": 1,
|
|
|
"showOrder": 0,
|
|
|
"propValue": size,
|
|
|
- "skuPropValueList": [
|
|
|
- {"propValue": str(37),
|
|
|
- "showOrder": 1}
|
|
|
- ],
|
|
|
})
|
|
|
detailImageUrl = self.uploadImage(local_path=detail_path)
|
|
|
category_info = "流行男鞋>>休闲鞋>>时尚休闲鞋"
|