mirror of
https://gitee.com/tawords/tawords-docs
synced 2025-09-01 23:43:27 +08:00
1.7 KiB
1.7 KiB
Url如下:
javascript:void (function() {
function debugmode(){
document.getElementById('login_username').value = "111111";
document.getElementById('login_password').value = "111111";
document.getElementById('register_username').value = "666666";
document.getElementById('register_nickname').value = "六个六";
document.getElementById('register_password').value = "666666";
document.getElementById('register_password_confirm').value = "666666";
getCaptchaCode(true);
}
function getCaptchaCode(isFailRetry){
$.ajax({
type: "POST",
url: 'api/get-captcha-code-test-only.php',
dataType: "json",
success: function (res) {
login_captcha.value = register_captcha.value = findpwd_captcha.value = res;
login_captcha.focus(); register_captcha.focus(); findpwd_captcha.focus();
window.getSelection().empty();
},
error: function (res) {
if(isFailRetry) setTimeout(getCaptchaCode(false), 100);
else{
login_captcha.value = register_captcha.value = findpwd_captcha.value = "验证码开小差啦,点下验证码再试一次吧";
login_captcha.focus(); register_captcha.focus(); findpwd_captcha.focus();
}
}
});
}
var vercodeimg_onload = function() { setTimeout(debugmode(), 100) };
login_vercodeimg.onload = vercodeimg_onload;
register_vercodeimg.onload = vercodeimg_onload;
findpwd_vercodeimg.onload = vercodeimg_onload;
debugmode();
}(document));