From 7b10f042b5658aa1d3e2d47d022d1f99016c8734 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 8 Oct 2023 23:45:12 +0800 Subject: [PATCH] :bug: LiuYun data center account signin captcha --- app/src/config/account.ts | 4 ++-- app/src/mobile/settings/account.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/config/account.ts b/app/src/config/account.ts index 0af15aa31..91f2754da 100644 --- a/app/src/config/account.ts +++ b/app/src/config/account.ts @@ -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; } diff --git a/app/src/mobile/settings/account.ts b/app/src/mobile/settings/account.ts index ba08f7323..e3387a2e9 100644 --- a/app/src/mobile/settings/account.ts +++ b/app/src/mobile/settings/account.ts @@ -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; }