更新 login.py

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

View File

@ -825,10 +825,10 @@ async def verification(page):
noise = random.uniform(-1, 1) * (1 - t) # 扰动衰减至0
# 应用噪声(距离越大抖动幅度越大)
current_x += noise * (distance / 200) # 以200px为基准比例
current_x += noise
# 移动鼠标Y轴始终不变
await page.mouse.move(current_x, start_y, steps=2)
await page.mouse.move(current_x, start_y, steps=1)
# 双重校准终点(应对任何残余误差)
await page.mouse.move(end_x, start_y, steps=5)