sc-common-interface 3.2.7__tar.gz → 3.2.8__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.2.7 → sc_common_interface-3.2.8}/PKG-INFO +1 -1
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface/PostCommonInterface.py +7 -4
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface.egg-info/PKG-INFO +1 -1
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/setup.py +1 -1
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface/CommonOa.py +0 -0
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface/LiveCommonInterface.py +0 -0
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface/McCommonInterface.py +0 -0
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface/OperaMysql.py +0 -0
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface/OperaRedis.py +0 -0
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface/ScPulsar.py +0 -0
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface/ScWebsocket.py +0 -0
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface/__init__.py +0 -0
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface/pra.py +0 -0
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface.egg-info/SOURCES.txt +0 -0
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface.egg-info/dependency_links.txt +0 -0
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface.egg-info/requires.txt +0 -0
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface.egg-info/top_level.txt +0 -0
- {sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/setup.cfg +0 -0
{sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface/PostCommonInterface.py
RENAMED
|
@@ -52,7 +52,7 @@ def create_general_post(data):
|
|
|
52
52
|
while True:
|
|
53
53
|
try:
|
|
54
54
|
response = requests.post(url,headers=headers,json=body)
|
|
55
|
-
|
|
55
|
+
print(response.json())
|
|
56
56
|
if response.status_code==200:
|
|
57
57
|
break
|
|
58
58
|
except Exception as e:
|
|
@@ -106,6 +106,7 @@ def create_commerce_post(data):
|
|
|
106
106
|
while True:
|
|
107
107
|
try:
|
|
108
108
|
response = requests.post(url, headers=headers, json=body)
|
|
109
|
+
print(response)
|
|
109
110
|
response.raise_for_status()
|
|
110
111
|
break
|
|
111
112
|
except requests.exceptions.RequestException as e:
|
|
@@ -116,7 +117,7 @@ def create_commerce_post(data):
|
|
|
116
117
|
if count>num:
|
|
117
118
|
break
|
|
118
119
|
response = response.json()
|
|
119
|
-
|
|
120
|
+
|
|
120
121
|
sales_id = response["data"]["id"]
|
|
121
122
|
return response,sales_id
|
|
122
123
|
|
|
@@ -347,7 +348,7 @@ def modify_lucky_draw(data):
|
|
|
347
348
|
sales_id = data["sales_id"]
|
|
348
349
|
else:
|
|
349
350
|
sales_id,__ = create_post_lucky_draw(data)
|
|
350
|
-
url = "%s/admin/api/bff-web/post/sale/%s"%(env, sales_id)
|
|
351
|
+
url = "%s/admin/api/bff-web/post/sale/%s/activity"%(env, sales_id)
|
|
351
352
|
response = requests.put(url,headers=headers,json=body).json()
|
|
352
353
|
return sales_id,response
|
|
353
354
|
|
|
@@ -1743,4 +1744,6 @@ def edit_message(data):
|
|
|
1743
1744
|
|
|
1744
1745
|
|
|
1745
1746
|
if __name__=="__main__":
|
|
1746
|
-
|
|
1747
|
+
data = {'env': 'https://front-admin-preview.shoplineapp.com', 'headers': {'Content-Type': 'application/json', 'authorization': 'Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI4MDczNjE1NGQyMTMwYjUzODJiMWQ1MTE3YjdlMTY4ZiIsImRhdGEiOnsibWVyY2hhbnRfaWQiOiI2MWE4N2M5NzYzYjcwYzAwNTEwNmZiZDAiLCJhcHBsaWNhdGlvbl9pZCI6IjYyN2M3NTBhMDYyMzcwMDAwYWZlNWVmZCJ9LCJpc3MiOiJodHRwczovL2RldmVsb3BlcnMtcHJldmlldy5zaG9wbGluZWFwcC5jb20iLCJhdWQiOltdLCJzdWIiOiI2MWE4N2M5NzYzYjcwYzAwNTEwNmZiZDAifQ.uvHtcxIhhvoy_0ll8yt566qdKJPddEJJsWo_siCtCI0', 'lang': 'en', 'user-agent': 'ShoplineQuality/1.5-python'}, 'platform': 'INSTAGRAM', 'patternModel': 'INCLUDE_MATCH'}
|
|
1748
|
+
res = create_general_post(data)
|
|
1749
|
+
print(res)
|
|
File without changes
|
{sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface/LiveCommonInterface.py
RENAMED
|
File without changes
|
{sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface/McCommonInterface.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface.egg-info/requires.txt
RENAMED
|
File without changes
|
{sc_common_interface-3.2.7 → sc_common_interface-3.2.8}/sc_common_interface.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|