ey-commerce-lib 1.0.21__py3-none-any.whl → 1.0.22__py3-none-any.whl

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.

Potentially problematic release.


This version of ey-commerce-lib might be problematic. Click here for more details.

@@ -9,7 +9,9 @@ class TakeSendClient(object):
9
9
  timeout = Timeout(connect=60.0, read=60.0, write=60.0, pool=30.0)
10
10
  self.__async_client = AsyncClient(
11
11
  base_url="http://k5.takesend.com:8180",
12
- timeout=timeout)
12
+ timeout=timeout,
13
+ verify=False
14
+ )
13
15
  self.__username = username
14
16
  self.__password = password
15
17
 
@@ -18,9 +20,9 @@ class TakeSendClient(object):
18
20
  自动登录
19
21
  :return:
20
22
  """
21
- # 1. 先访问首页更新JESSIONID
23
+ # 访问首页
22
24
  await self.__async_client.get("/c_index.jsp")
23
- # 2.在登录
25
+ # 登录
24
26
  params = {
25
27
  'action': 'logon'
26
28
  }
@@ -28,9 +30,10 @@ class TakeSendClient(object):
28
30
  'userid': self.__username,
29
31
  'password': self.__password
30
32
  }
31
- await self.__async_client.post("//client/Logon", params=params, data=data, headers=LOGIN_HEADERS)
33
+ # 请求登录接口
34
+ await self.__async_client.post(".//client/Logon", params=params, data=data, headers=LOGIN_HEADERS)
32
35
 
33
- async def client_cc_order(self, excel_data: list):
36
+ async def client_cc_order(self, excel_data: list | str):
34
37
  """
35
38
  修改泰嘉产品上传重量数据
36
39
  :param excel_data:
@@ -43,7 +46,9 @@ class TakeSendClient(object):
43
46
  data = {
44
47
  'excel[]': excel_data,
45
48
  }
46
- return await self.__async_client.post("/Client/CCOrder", params=params, data=data, headers=EDIT_HEADERS)
49
+
50
+ response = await self.__async_client.post('/Client/CCOrder', params=params, data=data, headers=EDIT_HEADERS)
51
+ return response.json()
47
52
 
48
53
  async def __aenter__(self):
49
54
  return self
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ey-commerce-lib
3
- Version: 1.0.21
3
+ Version: 1.0.22
4
4
  Summary: eeyoung电商客户端调用封装
5
5
  Author-email: 饶奇奇 <1124393197@qq.com>
6
6
  Requires-Python: >=3.10
@@ -48,13 +48,13 @@ ey_commerce_lib/kogan/schemas/response/order.py,sha256=ATWks8Erv9HmW9t_UklYRMn4s
48
48
  ey_commerce_lib/kogan/schemas/response/product.py,sha256=IVC1QSHSYZyHa4lCYz20rTdtmPvpPoqJsQP88hu48S4,2773
49
49
  ey_commerce_lib/takesend/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
50
  ey_commerce_lib/takesend/config.py,sha256=doR1mzVL3hrDY8luVT1_hRIGAc2_ZaTgYS8-SBU__Js,1260
51
- ey_commerce_lib/takesend/main.py,sha256=kYnRQxAgLWagyKr8ilLG7XrF2sG0ANoXoVm47fAANZ8,1568
51
+ ey_commerce_lib/takesend/main.py,sha256=x91ySyNfxUYQuuzKpA1hCW_IH7H9_Rxj-PTmYNwjs2g,1654
52
52
  ey_commerce_lib/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  ey_commerce_lib/utils/close.py,sha256=-De_H1I-gryytKYhLMsC3HfW67W852XkP1ckK2gLsFs,141
54
54
  ey_commerce_lib/utils/dxm.py,sha256=jVNltK_Pm_yMzXReD0Aw5VW6kzIZ5Bn23RucS0DKBI0,1196
55
55
  ey_commerce_lib/utils/float.py,sha256=PiOMf9pRApc1DskKkhKx0LAWHAYTpAPT_G4QRZRd8ZU,905
56
56
  ey_commerce_lib/utils/list_util.py,sha256=R1w7B1m3sEXr38zSHWp-15C3xAs5ykYCCpvwmnRW4xs,545
57
57
  ey_commerce_lib/utils/str.py,sha256=939xE0y8U7KEWjwbEezMlaWJNBsfb2BSb-dBpYbOD8Q,138
58
- ey_commerce_lib-1.0.21.dist-info/METADATA,sha256=gy3nsyb6elHZ7EdZlmzSkyuphYwOpmK9u1OUoN1IF3k,391
59
- ey_commerce_lib-1.0.21.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
60
- ey_commerce_lib-1.0.21.dist-info/RECORD,,
58
+ ey_commerce_lib-1.0.22.dist-info/METADATA,sha256=IM_gXFBekPm4jGaMgx468AmcFF2S0Y0l1RCf0KpiJf0,391
59
+ ey_commerce_lib-1.0.22.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
60
+ ey_commerce_lib-1.0.22.dist-info/RECORD,,