sc-common-interface 3.0.9__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.0.9 → sc_common_interface-3.1.2}/PKG-INFO +1 -1
  2. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/sc_common_interface/CommonOa.py +1 -3
  3. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/sc_common_interface/LiveCommonInterface.py +9 -3
  4. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/sc_common_interface/PostCommonInterface.py +2 -2
  5. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/sc_common_interface.egg-info/PKG-INFO +1 -1
  6. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/setup.py +1 -1
  7. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/sc_common_interface/McCommonInterface.py +0 -0
  8. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/sc_common_interface/OperaMysql.py +0 -0
  9. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/sc_common_interface/OperaRedis.py +0 -0
  10. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/sc_common_interface/ScPulsar.py +0 -0
  11. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/sc_common_interface/ScWebsocket.py +0 -0
  12. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/sc_common_interface/__init__.py +0 -0
  13. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/sc_common_interface.egg-info/SOURCES.txt +0 -0
  14. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/sc_common_interface.egg-info/dependency_links.txt +0 -0
  15. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/sc_common_interface.egg-info/requires.txt +0 -0
  16. {sc_common_interface-3.0.9 → sc_common_interface-3.1.2}/sc_common_interface.egg-info/top_level.txt +0 -0
  17. {sc_common_interface-3.0.9 → 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.0.9
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
 
@@ -1003,7 +1003,7 @@ def manual_order(data):
1003
1003
  # print("会员ID",customer_id)
1004
1004
  # print("创建会员返回,",response.text)
1005
1005
  #给会员新增物流地址
1006
- url = "%s/uc/customers/%s" % (oc_env,customer_id)
1006
+ url = "%s/uc/customers/%s" % (env,customer_id)
1007
1007
  postcode = "76653"
1008
1008
  delivery_data = {"delivery_addresses": [
1009
1009
  {"city": "bb", "country": "CN", "postcode": postcode, "recipient_name": name,
@@ -1730,4 +1730,4 @@ def edit_message(data):
1730
1730
 
1731
1731
 
1732
1732
  if __name__=="__main__":
1733
- pass
1733
+ pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc-common-interface
3
- Version: 3.0.9
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.0.9',
5
+ version='3.1.2',
6
6
  description='SC贴文销售公用的接口',
7
7
  author='river',
8
8
  packages=find_packages(),