sc-common-interface 2.5.5__tar.gz → 2.5.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc-common-interface
3
- Version: 2.5.5
3
+ Version: 2.5.6
4
4
  Summary: SC贴文销售公用的接口
5
5
  Home-page: UNKNOWN
6
6
  Author: river
@@ -1511,7 +1511,8 @@ def get_stock_product_set(res,type="stock"):
1511
1511
  break
1512
1512
  keyword = combination["keywords"][0]
1513
1513
  product_id = i["id"]
1514
- return keyword, product_id, list_data
1514
+ combination_id = combination["id"]
1515
+ return keyword, product_id, combination_id
1515
1516
  elif type=="out":
1516
1517
  for i in list_data:
1517
1518
  combinationList = i["combinationList"]
@@ -1523,7 +1524,8 @@ def get_stock_product_set(res,type="stock"):
1523
1524
  if quantity != -1 and quantity < count:
1524
1525
  keyword = combination["keywords"][0]
1525
1526
  product_id = i["id"]
1526
- return keyword, product_id, list_data
1527
+ combination_id = combination["id"]
1528
+ return keyword, product_id, combination_id
1527
1529
 
1528
1530
 
1529
1531
 
@@ -1828,5 +1830,5 @@ if __name__=="__main__":
1828
1830
  },
1829
1831
  "traceId": "13f3a0b22dc91017817f0f74756031cf"
1830
1832
  }
1831
- keyword,spuid,__ = get_stock_product_set(data,"out")
1832
- print(keyword)
1833
+ keyword,spuid,combination_id = get_stock_product_set(data,"out")
1834
+ print(combination_id)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc-common-interface
3
- Version: 2.5.5
3
+ Version: 2.5.6
4
4
  Summary: SC贴文销售公用的接口
5
5
  Home-page: UNKNOWN
6
6
  Author: river
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='sc-common-interface',
5
- version='2.5.5',
5
+ version='2.5.6',
6
6
  description='SC贴文销售公用的接口',
7
7
  author='river',
8
8
  packages=find_packages(),