From 83e6476408090b741fabb1b542fb458d9a8b4134 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 26 Sep 2025 01:21:01 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=AA=8C=E8=AF=81=E7=A0=81=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=B5=8B=E8=AF=95=EF=BC=8C=E7=99=BB=E5=BD=95=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81=E9=9C=80=E8=A6=81=E6=B5=8B=E8=AF=95=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E5=90=8E=E6=89=8D=E8=83=BD=E5=BC=80=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/certd-client/index.html | 1 + .../captcha/captchas/tencent_captcha.vue | 208 ++++++++++++++++++ .../cert/domains-verify-plan-editor/api.ts | 10 + .../cname-record-info.vue | 13 +- .../src/locales/langs/en-US/certd.ts | 4 +- .../src/locales/langs/zh-CN/certd.ts | 3 +- .../src/views/sys/settings/api.ts | 8 + .../src/views/sys/settings/index.vue | 2 +- .../src/views/sys/settings/tabs/base.vue | 35 +++ .../sys/access/access-controller.ts | 9 +- .../sys/settings/sys-settings-controller.ts | 7 + .../controller/user/addon/addon-controller.ts | 97 ++++---- .../user/cname/cname-record-controller.ts | 10 +- .../src/modules/cname/entity/cname-record.ts | 2 + .../cname/service/cname-record-service.ts | 23 +- .../service/getter/task-service-getter.ts | 8 +- .../src/plugins/plugin-captcha/index.ts | 1 + .../plugins/plugin-captcha/tencent/index.ts | 104 +++++++++ 18 files changed, 485 insertions(+), 60 deletions(-) create mode 100644 packages/ui/certd-client/src/components/captcha/captchas/tencent_captcha.vue create mode 100644 packages/ui/certd-server/src/plugins/plugin-captcha/tencent/index.ts diff --git a/packages/ui/certd-client/index.html b/packages/ui/certd-client/index.html index d760b2f5..e315e60c 100644 --- a/packages/ui/certd-client/index.html +++ b/packages/ui/certd-client/index.html @@ -24,5 +24,6 @@ + diff --git a/packages/ui/certd-client/src/components/captcha/captchas/tencent_captcha.vue b/packages/ui/certd-client/src/components/captcha/captchas/tencent_captcha.vue new file mode 100644 index 00000000..88f06e17 --- /dev/null +++ b/packages/ui/certd-client/src/components/captcha/captchas/tencent_captcha.vue @@ -0,0 +1,208 @@ + + + diff --git a/packages/ui/certd-client/src/components/plugins/cert/domains-verify-plan-editor/api.ts b/packages/ui/certd-client/src/components/plugins/cert/domains-verify-plan-editor/api.ts index 01ffa5ec..74ab87ab 100644 --- a/packages/ui/certd-client/src/components/plugins/cert/domains-verify-plan-editor/api.ts +++ b/packages/ui/certd-client/src/components/plugins/cert/domains-verify-plan-editor/api.ts @@ -45,6 +45,16 @@ export async function DoVerify(id: number) { }); } +export async function ResetStatus(id: number) { + return await request({ + url: apiPrefix + "/resetStatus", + method: "post", + data: { + id, + }, + }); +} + export async function ParseDomain(fullDomain: string) { return await request({ url: subDomainApiPrefix + "/parseDomain", diff --git a/packages/ui/certd-client/src/components/plugins/cert/domains-verify-plan-editor/cname-record-info.vue b/packages/ui/certd-client/src/components/plugins/cert/domains-verify-plan-editor/cname-record-info.vue index ebee7a67..9dac4178 100644 --- a/packages/ui/certd-client/src/components/plugins/cert/domains-verify-plan-editor/cname-record-info.vue +++ b/packages/ui/certd-client/src/components/plugins/cert/domains-verify-plan-editor/cname-record-info.vue @@ -16,6 +16,9 @@ + + +