sc-common-interface 2.4.9__tar.gz → 2.5.0__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-2.4.9 → sc-common-interface-2.5.0}/PKG-INFO +1 -1
- {sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface/LiveCommonInterface.py +16 -2
- {sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface.egg-info/PKG-INFO +1 -1
- {sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/setup.py +1 -1
- {sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface/McCommonInterface.py +0 -0
- {sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface/Platform.py +0 -0
- {sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface/PostCommonInterface.py +0 -0
- {sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface/__init__.py +0 -0
- {sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface.egg-info/SOURCES.txt +0 -0
- {sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface.egg-info/dependency_links.txt +0 -0
- {sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface.egg-info/requires.txt +0 -0
- {sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface.egg-info/top_level.txt +0 -0
- {sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/setup.cfg +0 -0
{sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface/LiveCommonInterface.py
RENAMED
|
@@ -1434,8 +1434,22 @@ def remove_live_product(data):
|
|
|
1434
1434
|
return response
|
|
1435
1435
|
|
|
1436
1436
|
|
|
1437
|
-
|
|
1438
|
-
|
|
1437
|
+
def change_keyword_status(data):
|
|
1438
|
+
env = data["env"]
|
|
1439
|
+
headers = data["headers"]
|
|
1440
|
+
sales_id = data["sales_id"]
|
|
1441
|
+
product_id = data["product_id"]
|
|
1442
|
+
status = "true"
|
|
1443
|
+
if "status" in data:
|
|
1444
|
+
status = data["status"]
|
|
1445
|
+
url = "%s/api/posts/post/sales/%s/product/keyword/status/%s"%(env,sales_id,status)
|
|
1446
|
+
body = {
|
|
1447
|
+
"spuIdList": [
|
|
1448
|
+
product_id
|
|
1449
|
+
]
|
|
1450
|
+
}
|
|
1451
|
+
response = requests.put(url, headers=headers,json=body).json()
|
|
1452
|
+
return response
|
|
1439
1453
|
|
|
1440
1454
|
|
|
1441
1455
|
if __name__=="__main__":
|
{sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface/McCommonInterface.py
RENAMED
|
File without changes
|
|
File without changes
|
{sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface/PostCommonInterface.py
RENAMED
|
File without changes
|
|
File without changes
|
{sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface.egg-info/requires.txt
RENAMED
|
File without changes
|
{sc-common-interface-2.4.9 → sc-common-interface-2.5.0}/sc_common_interface.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|