ey-commerce-lib 1.0.5__tar.gz → 1.0.6__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.

Potentially problematic release.


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

Files changed (32) hide show
  1. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/PKG-INFO +1 -1
  2. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/pyproject.toml +1 -1
  3. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/main.py +1 -1
  4. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/parser/order.py +2 -2
  5. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/.gitignore +0 -0
  6. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/.python-version +0 -0
  7. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/README.md +0 -0
  8. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/pytest.ini +0 -0
  9. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/__init__.py +0 -0
  10. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/__init__.py +0 -0
  11. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/constant/__init__.py +0 -0
  12. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/constant/order.py +0 -0
  13. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/exception/__init__.py +0 -0
  14. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/exception/common.py +0 -0
  15. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/order.py +0 -0
  16. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/parser/__init__.py +0 -0
  17. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/parser/common.py +0 -0
  18. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/parser/purchase.py +0 -0
  19. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/parser/warehouse.py +0 -0
  20. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/schemas/__init__.py +0 -0
  21. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/schemas/common.py +0 -0
  22. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/schemas/order.py +0 -0
  23. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/dxm/schemas/warehouse.py +0 -0
  24. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/py.typed +0 -0
  25. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/utils/__init__.py +0 -0
  26. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/utils/dxm.py +0 -0
  27. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/utils/list_util.py +0 -0
  28. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/src/ey_commerce_lib/utils/str.py +0 -0
  29. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/tests/__init__.py +0 -0
  30. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/tests/dxm/__init__.py +0 -0
  31. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/tests/dxm/test_purchase.py +0 -0
  32. {ey_commerce_lib-1.0.5 → ey_commerce_lib-1.0.6}/uv.lock +0 -0
@@ -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,6 +1,6 @@
1
1
  [project]
2
2
  name = "ey-commerce-lib"
3
- version = "1.0.5"
3
+ version = "1.0.6"
4
4
  description = "eeyoung电商客户端调用封装"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -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(
File without changes