sc-common-interface 2.2.4__tar.gz → 2.2.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc-common-interface
3
- Version: 2.2.4
3
+ Version: 2.2.5
4
4
  Summary: SC贴文销售公用的接口
5
5
  Home-page: UNKNOWN
6
6
  Author: river
@@ -177,6 +177,9 @@ def search_oa_product(data):
177
177
  env = data["env"]
178
178
  headers = data["headers"]
179
179
  url = "%s/openApi/proxy/v1/products?page=1&per_page=4" %env
180
+ if "query" in data:
181
+ query = data["query"]
182
+ url = "%s/openApi/proxy/v1/products?page=1&per_page=4&query=%s" % (env,query)
180
183
  response = requests.get(url, headers=headers).json()
181
184
  return response
182
185
 
@@ -350,9 +353,6 @@ def get_page_post(data):
350
353
  :return:响应
351
354
  """
352
355
  #时间戳转换
353
-
354
-
355
-
356
356
  env = data["env"]
357
357
  headers = data["headers"]
358
358
  platform = "FACEBOOK"
@@ -1450,6 +1450,4 @@ def get_mc_order_link(url):
1450
1450
 
1451
1451
 
1452
1452
  if __name__=="__main__":
1453
- data = {'env': 'https://front-admin-preview.shoplineapp.com', 'headers': {'Content-Type': 'application/json', 'authorization': 'Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJhMjQ0ZTUwMmMyYzIwY2E5MWVhZDg0NWQ2YTk4YzVlNCIsImRhdGEiOnsibWVyY2hhbnRfaWQiOiI2MWE4N2M5NzYzYjcwYzAwNTEwNmZiZDAiLCJhcHBsaWNhdGlvbl9pZCI6IjVmNTlmMTI4MzcyZWIzMDAwNmRjNDcwMSJ9LCJpc3MiOiJodHRwczovL2RldmVsb3BlcnMtcHJldmlldy5zaG9wbGluZWFwcC5jb20iLCJhdWQiOltdLCJzdWIiOiI2MWE4N2M5NzYzYjcwYzAwNTEwNmZiZDAifQ.8m_bKPfZJxan6M6hv_4byPROt_UtvHqnyWAT9Ox1CO0', 'lang': 'en'}, 'platform': 'INSTAGRAM', 'patternModel': 'INCLUDE_MATCH', 'sales_id': 423810, 'since': '1685030400', 'user_id': '4255666934537806', 'key': '5e3bba98882fc0fb22a0607238bc5b8f', 'keyword': '无规格商品关键字'}
1454
- response = manual_order(data)
1455
-
1453
+ pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc-common-interface
3
- Version: 2.2.4
3
+ Version: 2.2.5
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='2.2.4',
5
+ version='2.2.5',
6
6
  description='SC贴文销售公用的接口',
7
7
  author='river',
8
8
  packages=find_packages(),