Update kuduan.html

This commit is contained in:
a251231 2021-08-19 22:25:14 +08:00 committed by GitHub
parent 0505ed7d98
commit 6a69933d1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,37 +103,38 @@ swal("请务必看一遍", "✌京东APP扫码后 页面跳转即为成功✌
}
showQrcode()
function login() {
var xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
var results = xmlhttp.responseText
console.log(results)
switch (results) {
case "授权登录未确认":
break;
case "登录":
hd.style.visibility = "hidden";
qrcode.src = success
clearInterval(timer)
setTimeout(() => {
window.location.href = "/admin"
}, 1000);
break;
case "成功":
hd.style.visibility = "hidden";
qrcode.src = success
clearInterval(timer)
break;
default:
showQrcode()
break;
}
}
}
xmlhttp.open("GET", "/api/login/query", true);
xmlhttp.send();
}
function login() {
var xmlhttp = window.XMLHttpRequest
? new XMLHttpRequest()
: new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
var results = xmlhttp.responseText;
console.log(results);
switch (results) {
case "授权登录未确认":
break;
case "登录":
qrcode.src = success;
clearInterval(timer);
setTimeout(() => {
window.location.href = "/admin"
}, 1000);
break;
case "成功":
qrcode.src = success;
clearInterval(timer);
setTimeout(() => {}, 1000);
break;
default:
showQrcode();
break;
}
}
};
xmlhttp.open("GET", "/api/login/query", true);
xmlhttp.send();
}
function polling() {
timer = setInterval(() => {