sc-common-interface 3.0.6__tar.gz → 3.0.7__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.0.6 → sc_common_interface-3.0.7}/PKG-INFO +1 -1
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/LiveCommonInterface.py +20 -0
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/PKG-INFO +1 -1
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/setup.py +1 -1
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/CommonOa.py +0 -0
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/McCommonInterface.py +0 -0
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/OperaMysql.py +0 -0
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/OperaRedis.py +0 -0
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/PostCommonInterface.py +0 -0
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/ScPulsar.py +0 -0
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/ScWebsocket.py +0 -0
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/__init__.py +0 -0
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/SOURCES.txt +0 -0
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/dependency_links.txt +0 -0
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/requires.txt +0 -0
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/top_level.txt +0 -0
- {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/setup.cfg +0 -0
{sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/LiveCommonInterface.py
RENAMED
|
@@ -2666,6 +2666,25 @@ def get_product_detail(data):
|
|
|
2666
2666
|
return res
|
|
2667
2667
|
|
|
2668
2668
|
|
|
2669
|
+
def get_live_comment(data):
|
|
2670
|
+
env = data["env"]
|
|
2671
|
+
headers = data["headers"]
|
|
2672
|
+
sales_id = data["sales_id"]
|
|
2673
|
+
pageSize = data.get("pageSize","3")
|
|
2674
|
+
url = "%s/api/posts/post/comments?pageNo=1&pageSize=%s&salesId=%s"%(env,pageSize,sales_id)
|
|
2675
|
+
platform = data.get("platform")
|
|
2676
|
+
page_id = data.get("page_id")
|
|
2677
|
+
if platform !=None and page_id!=None:
|
|
2678
|
+
url = "%s/api/posts/post/comments?pageNo=1&pageSize=%s&salesId=%s&platform=%s&pageId=%s"%(env,pageSize,sales_id,platform,page_id)
|
|
2679
|
+
response = requests.get(url,headers=headers).json()
|
|
2680
|
+
return response["data"]["list"]
|
|
2681
|
+
|
|
2682
|
+
|
|
2683
|
+
|
|
2684
|
+
|
|
2685
|
+
|
|
2686
|
+
|
|
2687
|
+
|
|
2669
2688
|
|
|
2670
2689
|
if __name__ == "__main__":
|
|
2671
2690
|
pass
|
|
@@ -2673,3 +2692,4 @@ if __name__ == "__main__":
|
|
|
2673
2692
|
|
|
2674
2693
|
|
|
2675
2694
|
|
|
2695
|
+
|
|
File without changes
|
{sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/McCommonInterface.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/PostCommonInterface.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/requires.txt
RENAMED
|
File without changes
|
{sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|