优化代码

main
RogerWork 2 months ago
parent f2b7621466
commit 1c2201f635
  1. 2
      android_uia/jd_uia.py
  2. 2
      browser_playwright/jd_playwright.py

@ -56,7 +56,7 @@ class JdClient:
# self.dev.implicitly_wait(1)
# # print('等待1秒')
n = 1
while n < 50:
while n < 20:
self.dev.click(531, 1323)
self.dev.screenshot(f'{self.device.replace(":", "_")}_{str(n)}.png')
sleep(1)

@ -44,7 +44,7 @@ def run(_playwright: Playwright) -> None:
# 倒计时
jd_timer(target)
# 点击领取
page2.click(".coupon_wrapper")
page2.click(".coupon")
target_name = target.replace(':', '-').replace(' ', '_')
page2.screenshot(path=f"{target_name}.png")
print('点击立即领取!')

Loading…
Cancel
Save