更新 login.py

This commit is contained in:
zhao-zg 2025-04-11 19:26:34 +08:00 committed by GitHub
parent e97cdb2867
commit 9740b85671
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -807,7 +807,7 @@ async def verification(page):
start_y = box["y"] # Y轴固定不变
end_x = start_x + distance
for i in range(steps + 1): # +1确保覆盖t=1.0
for i in range(steps):
t = i / steps
# ==== 三阶贝塞尔曲线控制 ====
@ -828,7 +828,7 @@ async def verification(page):
current_x += noise * (distance / 200) # 以200px为基准比例
# 移动鼠标Y轴始终不变
await page.mouse.move(current_x, start_y, steps=1)
await page.mouse.move(current_x, start_y, steps=2)
# 双重校准终点(应对任何残余误差)
await page.mouse.move(end_x, start_y, steps=5)