mirror of
https://github.com/Rayzggz/server_torii.git
synced 2025-06-17 12:41:20 +08:00
fix: CAPTCHA HTML JS
This commit is contained in:
@ -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>
|
||||||
|
Reference in New Issue
Block a user