sc-common-interface 2.1.6__tar.gz → 2.1.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-2.1.6 → sc-common-interface-2.1.8}/PKG-INFO +1 -1
- {sc-common-interface-2.1.6 → sc-common-interface-2.1.8}/sc_common_interface/PostCommonInterface.py +5 -2
- {sc-common-interface-2.1.6 → sc-common-interface-2.1.8}/sc_common_interface.egg-info/PKG-INFO +1 -1
- {sc-common-interface-2.1.6 → sc-common-interface-2.1.8}/setup.py +1 -1
- {sc-common-interface-2.1.6 → sc-common-interface-2.1.8}/sc_common_interface/Platform.py +0 -0
- {sc-common-interface-2.1.6 → sc-common-interface-2.1.8}/sc_common_interface/__init__.py +0 -0
- {sc-common-interface-2.1.6 → sc-common-interface-2.1.8}/sc_common_interface.egg-info/SOURCES.txt +0 -0
- {sc-common-interface-2.1.6 → sc-common-interface-2.1.8}/sc_common_interface.egg-info/dependency_links.txt +0 -0
- {sc-common-interface-2.1.6 → sc-common-interface-2.1.8}/sc_common_interface.egg-info/requires.txt +0 -0
- {sc-common-interface-2.1.6 → sc-common-interface-2.1.8}/sc_common_interface.egg-info/top_level.txt +0 -0
- {sc-common-interface-2.1.6 → sc-common-interface-2.1.8}/setup.cfg +0 -0
{sc-common-interface-2.1.6 → sc-common-interface-2.1.8}/sc_common_interface/PostCommonInterface.py
RENAMED
|
@@ -818,6 +818,8 @@ def merge_customer(data):
|
|
|
818
818
|
"name": name, "page_scoped_id": user_id, "locale_code": None, "country_code": "cn",
|
|
819
819
|
"id": "", "party_channel_id": page_id, "platform": platform, "is_member": False}
|
|
820
820
|
response = requests.put(url, headers=headers, json=body)
|
|
821
|
+
else:
|
|
822
|
+
customer_id = response.json()["data"]["id"]
|
|
821
823
|
|
|
822
824
|
return response,customer_id
|
|
823
825
|
|
|
@@ -1136,7 +1138,8 @@ def get_mc_post(data):
|
|
|
1136
1138
|
else:
|
|
1137
1139
|
response = get_post_info(data)
|
|
1138
1140
|
page_id = jsonpath(response,"$..page_id")[0]
|
|
1139
|
-
url = "%s/mc/postcomment/
|
|
1141
|
+
url = "%s/mc/postcomment/posts"%env
|
|
1142
|
+
# print(url)
|
|
1140
1143
|
params = {"platform_channel_id":page_id,"staff_id":"all","page_num":1,"page_size":100}
|
|
1141
1144
|
response = requests.get(url, headers=headers,params=params).json()
|
|
1142
1145
|
id = jsonpath(response,"$..id")
|
|
@@ -1340,4 +1343,4 @@ def end_post(data):
|
|
|
1340
1343
|
|
|
1341
1344
|
|
|
1342
1345
|
if __name__=="__main__":
|
|
1343
|
-
|
|
1346
|
+
pass
|
|
File without changes
|
|
File without changes
|
{sc-common-interface-2.1.6 → sc-common-interface-2.1.8}/sc_common_interface.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sc-common-interface-2.1.6 → sc-common-interface-2.1.8}/sc_common_interface.egg-info/requires.txt
RENAMED
|
File without changes
|
{sc-common-interface-2.1.6 → sc-common-interface-2.1.8}/sc_common_interface.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|