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

@@ -1,4 +1,5 @@
1
1
  import asyncio
2
+ import time
2
3
  import traceback
3
4
 
4
5
  from httpx import AsyncClient, Timeout
@@ -709,7 +710,7 @@ class DxmClient:
709
710
  try:
710
711
  async with async_playwright() as p:
711
712
  browser = await p.chromium.launch(
712
- headless=True,
713
+ headless=False,
713
714
  args=[
714
715
  '--start-maximized',
715
716
  '--disable-blink-features=AutomationControlled',
@@ -739,6 +740,8 @@ class DxmClient:
739
740
  await asyncio.sleep(2)
740
741
  # 点击保存
741
742
  await page.locator('.button.btn-orange.m-left10').first.click()
743
+ # 获取保存成功文本
744
+ await page.wait_for_selector('.alert-successGreen')
742
745
  except Exception as e:
743
746
  raise Exception(f'更新店小秘 仓库-商品详情中的平台sku失败-失败原因:{traceback.format_exc()}')
744
747
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ey-commerce-lib
3
- Version: 1.0.16
3
+ Version: 1.0.17
4
4
  Summary: eeyoung电商客户端调用封装
5
5
  Author-email: 饶奇奇 <1124393197@qq.com>
6
6
  Requires-Python: >=3.10
@@ -2,7 +2,7 @@ ey_commerce_lib/__init__.py,sha256=QTYqXqSTHFRkM9TEgpDFcHvwLbvqHDqvqfQ9EiXkcAM,2
2
2
  ey_commerce_lib/model.py,sha256=0ZCE68502blzRDsQ38AIswc8kPk7H34Am5x8IiDi2DU,232
3
3
  ey_commerce_lib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  ey_commerce_lib/dxm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- ey_commerce_lib/dxm/main.py,sha256=l37Byi4P6nxdMRQSdmcgjjxCKa3_FATQ3seqCgfiKQA,29208
5
+ ey_commerce_lib/dxm/main.py,sha256=eSeZNRW5yyjYxPpubPBZxYWznk8NLHP6yizUDy2til8,29335
6
6
  ey_commerce_lib/dxm/order.py,sha256=hMdNm9X5h9tbvMWFnyE5hcSF4butzn7m-akGqLQUD0k,35
7
7
  ey_commerce_lib/dxm/constant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  ey_commerce_lib/dxm/constant/order.py,sha256=U-2NYnkIcqukzMtOFpfqvzIktu_t7jYEms_n9LgKMlY,2213
@@ -53,6 +53,6 @@ ey_commerce_lib/utils/dxm.py,sha256=jVNltK_Pm_yMzXReD0Aw5VW6kzIZ5Bn23RucS0DKBI0,
53
53
  ey_commerce_lib/utils/float.py,sha256=PiOMf9pRApc1DskKkhKx0LAWHAYTpAPT_G4QRZRd8ZU,905
54
54
  ey_commerce_lib/utils/list_util.py,sha256=R1w7B1m3sEXr38zSHWp-15C3xAs5ykYCCpvwmnRW4xs,545
55
55
  ey_commerce_lib/utils/str.py,sha256=939xE0y8U7KEWjwbEezMlaWJNBsfb2BSb-dBpYbOD8Q,138
56
- ey_commerce_lib-1.0.16.dist-info/METADATA,sha256=rDYDrnrc962sMDr66d9JP6oYHIkWALNSCbnYeKCzHkQ,391
57
- ey_commerce_lib-1.0.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
58
- ey_commerce_lib-1.0.16.dist-info/RECORD,,
56
+ ey_commerce_lib-1.0.17.dist-info/METADATA,sha256=eBuSrosk2QW4clVeMWFVSs7KGrAuClEpMYz77F7hEzw,391
57
+ ey_commerce_lib-1.0.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
58
+ ey_commerce_lib-1.0.17.dist-info/RECORD,,