fix: CAPTCHA HTML JS

This commit is contained in:
Roi Feng
2025-02-19 22:45:21 -05:00
parent 70cdf7e12f
commit b88ea6e3de

View File

@ -64,14 +64,17 @@
case "bad": case "bad":
alert("Bad CAPTCHA, please refresh the page and try again.\n" alert("Bad CAPTCHA, please refresh the page and try again.\n"
+ "您未能通过人机验证,请刷新页面后重试。"); + "您未能通过人机验证,请刷新页面后重试。");
window.location.reload();
break; break;
case "timeout": case "timeout":
alert("Verification timeout, please refresh the page and try again.\n" alert("Verification timeout, please refresh the page and try again.\n"
+ "验证超时,请刷新页面后重试。"); + "验证超时,请刷新页面后重试。");
window.location.reload();
break; break;
default: default:
alert("Unexpected error occurred, please refresh the page and try again.\n" 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);
</script> </script>
</head> </head>
<body> <body>