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.
Files changed (17) hide show
  1. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/PKG-INFO +1 -1
  2. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/LiveCommonInterface.py +20 -0
  3. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/PKG-INFO +1 -1
  4. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/setup.py +1 -1
  5. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/CommonOa.py +0 -0
  6. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/McCommonInterface.py +0 -0
  7. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/OperaMysql.py +0 -0
  8. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/OperaRedis.py +0 -0
  9. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/PostCommonInterface.py +0 -0
  10. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/ScPulsar.py +0 -0
  11. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/ScWebsocket.py +0 -0
  12. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface/__init__.py +0 -0
  13. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/SOURCES.txt +0 -0
  14. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/dependency_links.txt +0 -0
  15. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/requires.txt +0 -0
  16. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/top_level.txt +0 -0
  17. {sc_common_interface-3.0.6 → sc_common_interface-3.0.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc_common_interface
3
- Version: 3.0.6
3
+ Version: 3.0.7
4
4
  Summary: SC贴文销售公用的接口
5
5
  Home-page: UNKNOWN
6
6
  Author: river
@@ -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
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc-common-interface
3
- Version: 3.0.6
3
+ Version: 3.0.7
4
4
  Summary: SC贴文销售公用的接口
5
5
  Home-page: UNKNOWN
6
6
  Author: river
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='sc_common_interface',
5
- version='3.0.6',
5
+ version='3.0.7',
6
6
  description='SC贴文销售公用的接口',
7
7
  author='river',
8
8
  packages=find_packages(),