|
|
@@ -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("尺码", "")
|
|
|
+ size = sku_data.get("尺码", 37)
|
|
|
# 尺码
|
|
|
mainImages = sku_data.get("800x800", [])
|
|
|
if not mainImages:
|
|
|
@@ -660,7 +660,7 @@ class OnlineDataRequest(object):
|
|
|
}
|
|
|
skuPropValueList.append(
|
|
|
{
|
|
|
- "imageJson": imageJson,
|
|
|
+ "imageJson": [imageJson],
|
|
|
"propValue": str(color_name),
|
|
|
"showOrder": 1,
|
|
|
}
|
|
|
@@ -673,6 +673,17 @@ class OnlineDataRequest(object):
|
|
|
"skuPropValueList": skuPropValueList,
|
|
|
}
|
|
|
)
|
|
|
+ itemSkuImageList.append(
|
|
|
+ {
|
|
|
+ "propName": "尺码",
|
|
|
+ "isImageProp": 1,
|
|
|
+ "propShowOrder": 1,
|
|
|
+ "skuPropValueList": [
|
|
|
+ {"propValue": str(37),
|
|
|
+ "showOrder": 1}
|
|
|
+ ],
|
|
|
+ }
|
|
|
+ )
|
|
|
detailImageUrl = self.uploadImage(local_path=detail_path)
|
|
|
category_info = "流行男鞋>>休闲鞋>>时尚休闲鞋"
|
|
|
itemData = {
|