瀏覽代碼

尺码问题

rambo 3 周之前
父節點
當前提交
87239d14f4
共有 1 個文件被更改,包括 8 次插入7 次删除
  1. 8 7
      python/service/online_request/module_online_data.py

+ 8 - 7
python/service/online_request/module_online_data.py

@@ -640,7 +640,7 @@ class OnlineDataRequest(object):
                         "originalPrice": float(goods_price),
                         "newSkuWeight": int(1),
                         "skuMainImageUrl": str(imageUrl),
-                        "skuName": f"颜色:{color_name};尺:{size}",
+                        "skuName": f"颜色:{color_name};尺:{size}",
                         "sellingPrice": float(goods_price),
                         "quantity": int(quantity),
                         "showOrder": int(skuIdx + 1),
@@ -673,17 +673,18 @@ class OnlineDataRequest(object):
                         "skuPropValueList": skuPropValueList,
                     }
                 )
-                itemSkuImageList.append(
-                    {
-                        "propName": "尺码",
-                        "isImageProp": 1,
+                itemSkuImageList.append({
+                        "propName": "尺寸",
+                        "value": None,
+                        "isImageProp": 0,
                         "propShowOrder": 1,
+                        "showOrder": 0,
+                        "propValue": size,
                         "skuPropValueList": [
                             {"propValue": str(37),
                             "showOrder": 1}
                             ],
-                    }
-                )
+                    })
                 detailImageUrl = self.uploadImage(local_path=detail_path)
                 category_info = "流行男鞋>>休闲鞋>>时尚休闲鞋"
                 itemData = {