sc-common-interface 3.0.2__tar.gz → 3.0.3__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.2 → sc_common_interface-3.0.3}/PKG-INFO +1 -1
  2. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/sc_common_interface/LiveCommonInterface.py +6 -7
  3. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/sc_common_interface.egg-info/PKG-INFO +1 -1
  4. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/setup.py +1 -1
  5. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/sc_common_interface/CommonOa.py +0 -0
  6. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/sc_common_interface/McCommonInterface.py +0 -0
  7. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/sc_common_interface/OperaMysql.py +0 -0
  8. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/sc_common_interface/OperaRedis.py +0 -0
  9. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/sc_common_interface/PostCommonInterface.py +0 -0
  10. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/sc_common_interface/ScPulsar.py +0 -0
  11. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/sc_common_interface/ScWebsocket.py +0 -0
  12. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/sc_common_interface/__init__.py +0 -0
  13. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/sc_common_interface.egg-info/SOURCES.txt +0 -0
  14. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/sc_common_interface.egg-info/dependency_links.txt +0 -0
  15. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/sc_common_interface.egg-info/requires.txt +0 -0
  16. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/sc_common_interface.egg-info/top_level.txt +0 -0
  17. {sc_common_interface-3.0.2 → sc_common_interface-3.0.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc_common_interface
3
- Version: 3.0.2
3
+ Version: 3.0.3
4
4
  Summary: SC贴文销售公用的接口
5
5
  Home-page: UNKNOWN
6
6
  Author: river
@@ -1770,7 +1770,10 @@ def get_sales_keyword(data):
1770
1770
 
1771
1771
 
1772
1772
  def get_stock_product_set(res, type="stock"):
1773
- """直播间查询OA组合商品信息"""
1773
+ """直播间查询OA组合商品信息
1774
+ stock:查询有库存
1775
+ out:查询无库存
1776
+ """
1774
1777
  list_data = res["data"]["list"]
1775
1778
  if type == "stock":
1776
1779
  for i in list_data:
@@ -1783,7 +1786,7 @@ def get_stock_product_set(res, type="stock"):
1783
1786
  if quantity == -1:
1784
1787
  # print("库存无限数量")
1785
1788
  pass
1786
- elif quantity > count:
1789
+ elif quantity < count:
1787
1790
  break
1788
1791
  keyword = combination["keywords"][0]
1789
1792
  product_id = i["id"]
@@ -2546,9 +2549,5 @@ def send_comment():
2546
2549
 
2547
2550
 
2548
2551
  if __name__ == "__main__":
2549
- data = {'env': 'https://front-admin-preview.shoplineapp.com', 'headers': {'Content-Type': 'application/json', 'authorization': 'Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIzMzA5NzFkNWE3ODIwYjBhN2Y1NjQzM2UyOGEwZDFmZSIsImRhdGEiOnsibWVyY2hhbnRfaWQiOiI2MWE4N2M5NzYzYjcwYzAwNTEwNmZiZDAiLCJhcHBsaWNhdGlvbl9pZCI6IjYyN2M3NTBhMDYyMzcwMDAwYWZlNWVmZCJ9LCJpc3MiOiJodHRwczovL2RldmVsb3BlcnMtcHJldmlldy5zaG9wbGluZWFwcC5jb20iLCJhdWQiOltdLCJzdWIiOiI2MWE4N2M5NzYzYjcwYzAwNTEwNmZiZDAifQ.AmO49bUXC-bpV0Oij3FCHv5PDI728EhBnXm_sK-yyBE', 'lang': 'en', 'user-agent': 'ShoplineQuality/1.5-python'}, 'sales_id': 583226}
2550
- data["activity_id"] = 10324333
2551
- res = start_activity(data)
2552
- print(res)
2553
-
2552
+ pass
2554
2553
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc-common-interface
3
- Version: 3.0.2
3
+ Version: 3.0.3
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.2',
5
+ version='3.0.3',
6
6
  description='SC贴文销售公用的接口',
7
7
  author='river',
8
8
  packages=find_packages(),