fix: 修改reCAPTCHA响应处理以返回gRecaptchaResponse代替token
This commit is contained in:
parent
e89557a289
commit
aa302bdb58
2
onoe.py
2
onoe.py
@ -287,7 +287,7 @@ def solve_recaptcha_v3_with_proxy(
|
|||||||
result = r.json()
|
result = r.json()
|
||||||
logger.info(f"第{i}次,task_id:{task_id},结果:{result}")
|
logger.info(f"第{i}次,task_id:{task_id},结果:{result}")
|
||||||
if result.get("status") == "ready":
|
if result.get("status") == "ready":
|
||||||
return result["solution"]["token"]
|
return result["solution"]["gRecaptchaResponse"]
|
||||||
time.sleep(polling_interval)
|
time.sleep(polling_interval)
|
||||||
|
|
||||||
# raise TimeoutError(f"任务 {task_id} 在轮询 {max_poll_attempts} 次后未完成")
|
# raise TimeoutError(f"任务 {task_id} 在轮询 {max_poll_attempts} 次后未完成")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user