mirror of
https://github.com/zhao-zg/jd-login.git
synced 2026-01-15 15:30:43 +08:00
Update login.py
滑块移动慢一点
This commit is contained in:
parent
78afca1f15
commit
b5adf12f3c
2
login.py
2
login.py
@ -802,7 +802,7 @@ async def verification(page):
|
|||||||
distance = await get_distance()
|
distance = await get_distance()
|
||||||
await page.mouse.move(box["x"] + 10, box["y"] + 10)
|
await page.mouse.move(box["x"] + 10, box["y"] + 10)
|
||||||
await page.mouse.down()
|
await page.mouse.down()
|
||||||
steps=20
|
steps=30
|
||||||
start_x = box["x"] # 直接使用box的x作为起点
|
start_x = box["x"] # 直接使用box的x作为起点
|
||||||
start_y = box["y"] # Y轴固定不变
|
start_y = box["y"] # Y轴固定不变
|
||||||
end_x = start_x + distance
|
end_x = start_x + distance
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user