From 095791cdc2b7c1f4b913b634643afec5e30fe9b0 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Thu, 25 Jun 2026 22:53:01 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=81=AB=E5=B1=B1=E5=BC=95=E6=93=8E?= =?UTF-8?q?=E7=82=B9=E6=92=AD=E6=8F=92=E4=BB=B6=E6=94=AF=E6=8C=81=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E5=88=B0=E8=87=AA=E5=AE=9A=E4=B9=89=E6=BA=90=E7=AB=99?= =?UTF-8?q?=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deploy_VolcengineDeployToVOD.yaml | 14 ++++++++ .../plugins/plugin-deploy-to-vod.ts | 34 +++++++++++++++---- 2 files changed, 42 insertions(+), 6 deletions(-) diff --git a/packages/ui/certd-server/metadata/deploy_VolcengineDeployToVOD.yaml b/packages/ui/certd-server/metadata/deploy_VolcengineDeployToVOD.yaml index c468ef30e..b5a9c09ac 100644 --- a/packages/ui/certd-server/metadata/deploy_VolcengineDeployToVOD.yaml +++ b/packages/ui/certd-server/metadata/deploy_VolcengineDeployToVOD.yaml @@ -99,6 +99,19 @@ input: value: play required: true order: 0 + sourceStationType: + title: 源站类型 + helper: 选择源站类型 + component: + name: a-select + vModel: value + options: + - value: 1 + label: 点播源站 + - value: 2 + label: 自定义源站 + required: false + order: 0 domainList: title: 域名 component: @@ -117,6 +130,7 @@ input: - accessId - spaceName - domainType + - sourceStationType required: true mergeScript: |2- diff --git a/packages/ui/certd-server/src/plugins/plugin-volcengine/plugins/plugin-deploy-to-vod.ts b/packages/ui/certd-server/src/plugins/plugin-volcengine/plugins/plugin-deploy-to-vod.ts index d0401a054..d41041baa 100644 --- a/packages/ui/certd-server/src/plugins/plugin-volcengine/plugins/plugin-deploy-to-vod.ts +++ b/packages/ui/certd-server/src/plugins/plugin-volcengine/plugins/plugin-deploy-to-vod.ts @@ -46,7 +46,7 @@ export class VolcengineDeployToVOD extends AbstractTaskPlugin { title: "区域", helper: "选择火山引擎区域", component: { - name: "select", + name: "a-select", options: [ { value: "cn-north-1", label: "华北1(北京)" }, { value: "ap-southeast-1", label: "东南亚1(新加坡)" }, @@ -85,12 +85,29 @@ export class VolcengineDeployToVOD extends AbstractTaskPlugin { }) domainType!: string; + @TaskInput({ + title: "源站类型", + helper: "选择源站类型", + component: { + name: "a-select", + vModel: "value", + options: [ + { value: 1, label: "点播源站" }, + { value: 2, label: "自定义源站" }, + ], + value: 1, + helper: "注意:封面加速域名不支持自定义源站", + }, + required: false, + }) + sourceStationType!: number | undefined; + @TaskInput( createRemoteSelectInputDefine({ title: "域名", helper: "选择要部署证书的域名\n需要先在域名管理页面进行证书中心访问授权(即点击去配置SSL证书)", action: VolcengineDeployToVOD.prototype.onGetDomainList.name, - watches: ["certDomains", "accessId", "spaceName", "domainType"], + watches: ["certDomains", "accessId", "spaceName", "domainType", "sourceStationType"], required: true, }) ) @@ -206,12 +223,17 @@ export class VolcengineDeployToVOD extends AbstractTaskPlugin { } const service = await this.getVodService({ version: "2023-01-01", region: this.regionId }); + const query: Record = { + SpaceName: this.spaceName, + DomainType: this.domainType, + }; + if (this.sourceStationType !== undefined) { + query.SourceStationType = this.sourceStationType; + } + const res = await service.request({ action: "ListDomain", - query: { - SpaceName: this.spaceName, - DomainType: this.domainType, - }, + query, }); const instances = res.Result?.PlayInstanceInfo?.ByteInstances;