From b88ea6e3de683b088abc52abc2a66f9d34370ea5 Mon Sep 17 00:00:00 2001 From: Roi Feng <37480123+Rayzggz@users.noreply.github.com> Date: Wed, 19 Feb 2025 22:45:21 -0500 Subject: [PATCH] fix: CAPTCHA HTML JS --- config_example/error_page/CAPTCHA.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config_example/error_page/CAPTCHA.html b/config_example/error_page/CAPTCHA.html index fa90b8b..8a73f12 100644 --- a/config_example/error_page/CAPTCHA.html +++ b/config_example/error_page/CAPTCHA.html @@ -64,14 +64,17 @@ case "bad": alert("Bad CAPTCHA, please refresh the page and try again.\n" + "您未能通过人机验证,请刷新页面后重试。"); + window.location.reload(); break; case "timeout": alert("Verification timeout, please refresh the page and try again.\n" + "验证超时,请刷新页面后重试。"); + window.location.reload(); break; default: alert("Unexpected error occurred, please refresh the page and try again.\n" + "发生了意料之外的错误,请刷新页面后重试。"); + window.location.reload(); } } } @@ -86,7 +89,7 @@ + "加载人机验证失败,请检查尝试更换网络环境后重试。"; } } - setTimeout(checkCaptchaRender, 5000); // 5秒后检查 + setTimeout(checkCaptchaRender, 5000);