ey-commerce-lib 1.0.5__py3-none-any.whl → 1.0.6__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.

@@ -522,7 +522,7 @@ class DxmClient:
522
522
  validate_price_res = await self.__async_client.post("/dxmPurchasingNote/validatePrice.json", data={
523
523
  'ids': ids
524
524
  })
525
- return validate_price_res
525
+ return validate_price_res.json()
526
526
 
527
527
  async def wait_pay_pay_money(self, purchase_id: str):
528
528
  """
@@ -16,10 +16,10 @@ def get_single_order_item_list(order_element: html.HtmlElement):
16
16
  for sku_element in sku_element_list:
17
17
  sku = sku_element.xpath('.//a[contains(@class, "pairProInfoSku")]/text()')[0]
18
18
  img = get_str_list_first_not_blank_or_none(sku_element.xpath('.//img/@data-original'))
19
- quantity = sku_element.xpath('.//p[@class="limingcentUrlpicson"]/span/text()')[0]
19
+ quantity = sku_element.xpath('.//span[@class="limingcentUrlpicson"]/following-sibling::span[1]/text()')[0]
20
20
  # 价格
21
21
  currency, price = \
22
- sku_element.xpath('.//p[@class="limingcentUrlpicson"]/following-sibling::p[1]/text()')[
22
+ sku_element.xpath('.//span[@class="limingcentUrlpicson"]/parent::*/following-sibling::p[1]/text()')[
23
23
  0].split(' ')
24
24
  # 变种
25
25
  variants = sku_element.xpath(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ey-commerce-lib
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: eeyoung电商客户端调用封装
5
5
  Author-email: 饶奇奇 <1124393197@qq.com>
6
6
  Requires-Python: >=3.10
@@ -1,7 +1,7 @@
1
1
  ey_commerce_lib/__init__.py,sha256=QTYqXqSTHFRkM9TEgpDFcHvwLbvqHDqvqfQ9EiXkcAM,23
2
2
  ey_commerce_lib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  ey_commerce_lib/dxm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- ey_commerce_lib/dxm/main.py,sha256=MZVOl-3M2fUj-_Rcwh6Rar30Wf1qX20stnRYo6H2P2w,21026
4
+ ey_commerce_lib/dxm/main.py,sha256=GeUqUoOV9CMBjMucoIWQNhF-Idi2JSk9J0DF8M-AyJ0,21033
5
5
  ey_commerce_lib/dxm/order.py,sha256=hMdNm9X5h9tbvMWFnyE5hcSF4butzn7m-akGqLQUD0k,35
6
6
  ey_commerce_lib/dxm/constant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  ey_commerce_lib/dxm/constant/order.py,sha256=U-2NYnkIcqukzMtOFpfqvzIktu_t7jYEms_n9LgKMlY,2213
@@ -9,7 +9,7 @@ ey_commerce_lib/dxm/exception/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
9
9
  ey_commerce_lib/dxm/exception/common.py,sha256=DM5vItHdZCGK2Piqp2S5TFxPm3pioMzzlV-1RTxty00,159
10
10
  ey_commerce_lib/dxm/parser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  ey_commerce_lib/dxm/parser/common.py,sha256=-3OwoGsuHpugFS96OAzimZTXLkH7qZqmNvP-kvVSndM,3035
12
- ey_commerce_lib/dxm/parser/order.py,sha256=5t_ie5nkmhZdDC7NBOhIkNxRYHTmlZCxs4Y6TseCp88,16542
12
+ ey_commerce_lib/dxm/parser/order.py,sha256=tOvMuP_Ld8muL6sBoqGXtgaLPBiBW8Xeu5WSDIhzEXY,16580
13
13
  ey_commerce_lib/dxm/parser/purchase.py,sha256=7ULQHAIqUuUcpvWM1ut7uqCQhwE-DcQ7K3qftsfNlK8,5768
14
14
  ey_commerce_lib/dxm/parser/warehouse.py,sha256=LfmqVixV5IcnPvr6Ma4XYoWUdXixQ16xzPP07bJrWb0,3192
15
15
  ey_commerce_lib/dxm/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -20,6 +20,6 @@ ey_commerce_lib/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
20
20
  ey_commerce_lib/utils/dxm.py,sha256=jVNltK_Pm_yMzXReD0Aw5VW6kzIZ5Bn23RucS0DKBI0,1196
21
21
  ey_commerce_lib/utils/list_util.py,sha256=R1w7B1m3sEXr38zSHWp-15C3xAs5ykYCCpvwmnRW4xs,545
22
22
  ey_commerce_lib/utils/str.py,sha256=939xE0y8U7KEWjwbEezMlaWJNBsfb2BSb-dBpYbOD8Q,138
23
- ey_commerce_lib-1.0.5.dist-info/METADATA,sha256=efMnG-13V7ehNQxXj4MitQE7Az6cI32-_gOBIT3CNHw,326
24
- ey_commerce_lib-1.0.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
- ey_commerce_lib-1.0.5.dist-info/RECORD,,
23
+ ey_commerce_lib-1.0.6.dist-info/METADATA,sha256=g-djWVYXp7FIvhyeBL04rw_6qJsX4LYf7tQvt2ovCZ8,326
24
+ ey_commerce_lib-1.0.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
+ ey_commerce_lib-1.0.6.dist-info/RECORD,,