sc-common-interface 3.1.3__tar.gz → 3.1.4__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.
Files changed (17) hide show
  1. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/PKG-INFO +1 -1
  2. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/PostCommonInterface.py +9 -7
  3. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface.egg-info/PKG-INFO +1 -1
  4. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/setup.py +1 -1
  5. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/CommonOa.py +0 -0
  6. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/LiveCommonInterface.py +0 -0
  7. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/McCommonInterface.py +0 -0
  8. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/OperaMysql.py +0 -0
  9. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/OperaRedis.py +0 -0
  10. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/ScPulsar.py +0 -0
  11. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/ScWebsocket.py +0 -0
  12. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/__init__.py +0 -0
  13. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface.egg-info/SOURCES.txt +0 -0
  14. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface.egg-info/dependency_links.txt +0 -0
  15. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface.egg-info/requires.txt +0 -0
  16. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface.egg-info/top_level.txt +0 -0
  17. {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc_common_interface
3
- Version: 3.1.3
3
+ Version: 3.1.4
4
4
  Summary: SC贴文销售公用的接口
5
5
  Home-page: UNKNOWN
6
6
  Author: river
@@ -509,21 +509,23 @@ def search_post_product(data):
509
509
  """
510
510
  env = data["env"]
511
511
  headers = data["headers"]
512
- url = "%s/api/posts/common/product/key/spu/list?page=1&searchType=ALL&pageSize=10"%env
513
- response = requests.get(url, headers=headers).json()
514
- items = response["data"]["openApiProductDetails"]
515
- # productSpuKeyVos = response["data"]["productSpuKeyVos"][0]
516
- # skuKeys = productSpuKeyVos["skuKeys"]
517
- # spuId = productSpuKeyVos["spuId"]
518
- # return skuKeys,spuId,response
519
512
  type = "spu"
520
513
  quantity = 100
521
514
  if "type" in data:
522
515
  type = data["type"]
523
516
  if "quantity" in data:
524
517
  quantity = data["quantity"]
518
+ url = "%s/api/posts/common/product/key/spu/list?page=1&searchType=ALL&pageSize=10"%(env)
525
519
  if "query" in data:
526
520
  query = data["query"]
521
+ url = "%s/api/posts/common/product/key/spu/list?page=1&searchType=ALL&pageSize=10&query=%s" % (env, query)
522
+ response = requests.get(url, headers=headers).json()
523
+ items = response["data"]["openApiProductDetails"]
524
+ # productSpuKeyVos = response["data"]["productSpuKeyVos"][0]
525
+ # skuKeys = productSpuKeyVos["skuKeys"]
526
+ # spuId = productSpuKeyVos["spuId"]
527
+ # return skuKeys,spuId,response
528
+
527
529
  variant_options_list = jsonpath(items, "$..variations")
528
530
  product_info = ""
529
531
  spu_id = ""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc-common-interface
3
- Version: 3.1.3
3
+ Version: 3.1.4
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='3.1.3',
5
+ version='3.1.4',
6
6
  description='SC贴文销售公用的接口',
7
7
  author='river',
8
8
  packages=find_packages(),