🐛 LiuYun data center account signin captcha

This commit is contained in:
Daniel 2023-10-08 23:45:12 +08:00
parent f600cc1bde
commit 7b10f042b5
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 4 additions and 4 deletions

View file

@ -328,7 +328,7 @@ ${renewHTML}
let token: string;
let needCaptcha: string;
captchaImgElement.addEventListener("click", () => {
captchaImgElement.setAttribute("src", `https://ld246.com/captcha/login?needCaptcha=${needCaptcha}&t=${new Date().getTime()}`);
captchaImgElement.setAttribute("src", getCloudURL("captcha") + `/login?needCaptcha=${needCaptcha}&t=${new Date().getTime()}`);
});
const cloudRegionElement = element.querySelector("#cloudRegion") as HTMLSelectElement;
@ -354,7 +354,7 @@ ${renewHTML}
needCaptcha = data.data.needCaptcha;
captchaElement.parentElement.classList.remove("fn__none");
captchaElement.previousElementSibling.setAttribute("src",
`https://ld246.com/captcha/login?needCaptcha=${data.data.needCaptcha}`);
getCloudURL("captcha") + `/login?needCaptcha=${data.data.needCaptcha}`);
captchaElement.value = "";
return;
}

View file

@ -200,7 +200,7 @@ const bindLoginEvent = (modelMainElement: HTMLElement, deactive = false) => {
});
}
captchaImgElement.addEventListener("click", () => {
captchaImgElement.setAttribute("src", `https://ld246.com/captcha/login?needCaptcha=${needCaptcha}&t=${new Date().getTime()}`);
captchaImgElement.setAttribute("src", getCloudURL("captcha") + `/login?needCaptcha=${needCaptcha}&t=${new Date().getTime()}`);
});
const cloudRegionElement = modelMainElement.querySelector("#cloudRegion") as HTMLSelectElement;
@ -226,7 +226,7 @@ const bindLoginEvent = (modelMainElement: HTMLElement, deactive = false) => {
needCaptcha = data.data.needCaptcha;
captchaElement.parentElement.classList.remove("fn__none");
captchaElement.previousElementSibling.setAttribute("src",
`https://ld246.com/captcha/login?needCaptcha=${data.data.needCaptcha}`);
getCloudURL("captcha") + `/login?needCaptcha=${data.data.needCaptcha}`);
captchaElement.value = "";
return;
}