sc-common-interface 3.1.1__tar.gz → 3.1.2__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.1.1 → sc_common_interface-3.1.2}/PKG-INFO +1 -1
  2. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/sc_common_interface/CommonOa.py +1 -3
  3. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/sc_common_interface/LiveCommonInterface.py +9 -3
  4. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/sc_common_interface.egg-info/PKG-INFO +1 -1
  5. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/setup.py +1 -1
  6. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/sc_common_interface/McCommonInterface.py +0 -0
  7. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/sc_common_interface/OperaMysql.py +0 -0
  8. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/sc_common_interface/OperaRedis.py +0 -0
  9. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/sc_common_interface/PostCommonInterface.py +0 -0
  10. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/sc_common_interface/ScPulsar.py +0 -0
  11. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/sc_common_interface/ScWebsocket.py +0 -0
  12. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/sc_common_interface/__init__.py +0 -0
  13. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/sc_common_interface.egg-info/SOURCES.txt +0 -0
  14. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/sc_common_interface.egg-info/dependency_links.txt +0 -0
  15. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/sc_common_interface.egg-info/requires.txt +0 -0
  16. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/sc_common_interface.egg-info/top_level.txt +0 -0
  17. {sc_common_interface-3.1.1 → sc_common_interface-3.1.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc_common_interface
3
- Version: 3.1.1
3
+ Version: 3.1.2
4
4
  Summary: SC贴文销售公用的接口
5
5
  Home-page: UNKNOWN
6
6
  Author: river
@@ -243,9 +243,7 @@ def get_str_time(time_type="add",unit="days",num=1,format='%Y-%m-%dT%H:%M:%S.%f'
243
243
 
244
244
 
245
245
  if __name__=="__main__":
246
- data = {'oa_env': 'https://open-preview.shopline.io', 'oa_headers': {'Authorization': 'Bearar e2a8ce0b65ed2a79c702949066ce7ea3d07af192c6dc506a824bac8e8892340c', 'Content-Type': 'application/json'}, 'product_id': '68cea74d77432c000e3a374b', 'hide_price': True}
247
- res = edit_product_spu(data)
248
- print(res)
246
+ pass
249
247
 
250
248
 
251
249
 
@@ -2728,6 +2728,13 @@ def line_bind_webhook(data):
2728
2728
  response = requests.post(url,json=body,headers={"Content-Type":"application/json"})
2729
2729
 
2730
2730
 
2731
+ def get_live_global(data):
2732
+ env = data["env"]
2733
+ headers = data["headers"]
2734
+ url = "%s/api/posts/post/sales/global/LIVE"%env
2735
+ res = requests.get(url, headers=headers).json()
2736
+ return res
2737
+
2731
2738
 
2732
2739
 
2733
2740
 
@@ -2736,9 +2743,8 @@ def line_bind_webhook(data):
2736
2743
 
2737
2744
 
2738
2745
  if __name__ == "__main__":
2739
- for i in range(100):
2740
- time.sleep(0.5)
2741
- send_comment()
2746
+ pass
2747
+
2742
2748
 
2743
2749
 
2744
2750
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc-common-interface
3
- Version: 3.1.1
3
+ Version: 3.1.2
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.1.1',
5
+ version='3.1.2',
6
6
  description='SC贴文销售公用的接口',
7
7
  author='river',
8
8
  packages=find_packages(),