perf: 火山引擎点播插件支持部署到自定义源站域名

This commit is contained in:
xiaojunnuo
2026-06-25 22:53:01 +08:00
parent 3e304c497e
commit 095791cdc2
2 changed files with 42 additions and 6 deletions
@@ -99,6 +99,19 @@ input:
value: play value: play
required: true required: true
order: 0 order: 0
sourceStationType:
title: 源站类型
helper: 选择源站类型
component:
name: a-select
vModel: value
options:
- value: 1
label: 点播源站
- value: 2
label: 自定义源站
required: false
order: 0
domainList: domainList:
title: 域名 title: 域名
component: component:
@@ -117,6 +130,7 @@ input:
- accessId - accessId
- spaceName - spaceName
- domainType - domainType
- sourceStationType
required: true required: true
mergeScript: |2- mergeScript: |2-
@@ -46,7 +46,7 @@ export class VolcengineDeployToVOD extends AbstractTaskPlugin {
title: "区域", title: "区域",
helper: "选择火山引擎区域", helper: "选择火山引擎区域",
component: { component: {
name: "select", name: "a-select",
options: [ options: [
{ value: "cn-north-1", label: "华北1(北京)" }, { value: "cn-north-1", label: "华北1(北京)" },
{ value: "ap-southeast-1", label: "东南亚1(新加坡)" }, { value: "ap-southeast-1", label: "东南亚1(新加坡)" },
@@ -85,12 +85,29 @@ export class VolcengineDeployToVOD extends AbstractTaskPlugin {
}) })
domainType!: string; 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( @TaskInput(
createRemoteSelectInputDefine({ createRemoteSelectInputDefine({
title: "域名", title: "域名",
helper: "选择要部署证书的域名\n需要先在域名管理页面进行证书中心访问授权(即点击去配置SSL证书)", helper: "选择要部署证书的域名\n需要先在域名管理页面进行证书中心访问授权(即点击去配置SSL证书)",
action: VolcengineDeployToVOD.prototype.onGetDomainList.name, action: VolcengineDeployToVOD.prototype.onGetDomainList.name,
watches: ["certDomains", "accessId", "spaceName", "domainType"], watches: ["certDomains", "accessId", "spaceName", "domainType", "sourceStationType"],
required: true, required: true,
}) })
) )
@@ -206,12 +223,17 @@ export class VolcengineDeployToVOD extends AbstractTaskPlugin {
} }
const service = await this.getVodService({ version: "2023-01-01", region: this.regionId }); const service = await this.getVodService({ version: "2023-01-01", region: this.regionId });
const query: Record<string, any> = {
SpaceName: this.spaceName,
DomainType: this.domainType,
};
if (this.sourceStationType !== undefined) {
query.SourceStationType = this.sourceStationType;
}
const res = await service.request({ const res = await service.request({
action: "ListDomain", action: "ListDomain",
query: { query,
SpaceName: this.spaceName,
DomainType: this.domainType,
},
}); });
const instances = res.Result?.PlayInstanceInfo?.ByteInstances; const instances = res.Result?.PlayInstanceInfo?.ByteInstances;