perf: 腾讯云插件支持国际版

This commit is contained in:
xiaojunnuo
2025-08-25 16:19:37 +08:00
parent 06d15be43a
commit 58e82d5dbd
21 changed files with 28 additions and 13 deletions
@@ -4,6 +4,7 @@ import { IsAccess, AccessInput, BaseAccess } from "@certd/pipeline";
name: "tencent",
title: "腾讯云",
icon: "svg:icon-tencentcloud",
order: 0,
})
export class TencentAccess extends BaseAccess {
@AccessInput({
@@ -59,4 +60,8 @@ export class TencentAccess extends BaseAccess {
isIntl() {
return this.accountType === "intl";
}
intlDomain() {
return this.isIntl() ? "intl." : "";
}
}
@@ -26,7 +26,7 @@ export class TencentSslClient {
region: this.region,
profile: {
httpProfile: {
endpoint: "ssl.tencentcloudapi.com",
endpoint: this.access.isIntl() ? "ssl.intl.tencentcloudapi.com" : "ssl.tencentcloudapi.com",
},
},
};