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.
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/PKG-INFO +1 -1
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/PostCommonInterface.py +9 -7
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface.egg-info/PKG-INFO +1 -1
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/setup.py +1 -1
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/CommonOa.py +0 -0
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/LiveCommonInterface.py +0 -0
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/McCommonInterface.py +0 -0
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/OperaMysql.py +0 -0
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/OperaRedis.py +0 -0
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/ScPulsar.py +0 -0
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/ScWebsocket.py +0 -0
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/__init__.py +0 -0
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface.egg-info/SOURCES.txt +0 -0
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface.egg-info/dependency_links.txt +0 -0
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface.egg-info/requires.txt +0 -0
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface.egg-info/top_level.txt +0 -0
- {sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/setup.cfg +0 -0
{sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/PostCommonInterface.py
RENAMED
|
@@ -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 = ""
|
|
File without changes
|
{sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/LiveCommonInterface.py
RENAMED
|
File without changes
|
{sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface/McCommonInterface.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface.egg-info/requires.txt
RENAMED
|
File without changes
|
{sc_common_interface-3.1.3 → sc_common_interface-3.1.4}/sc_common_interface.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|