perf: 支持部署证书到火山引擎vod

This commit is contained in:
xiaojunnuo
2026-03-26 01:01:52 +08:00
parent af6deb99cd
commit f91d591b03
3 changed files with 113 additions and 67 deletions
@@ -84,7 +84,7 @@ export class VolcengineClient {
return service;
}
async getVodService(opts?: { version?: string }) {
async getVodService(opts?: { version?: string, region?: string }) {
const CommonService = await this.getServiceCls();
const service = new CommonService({
@@ -93,6 +93,7 @@ export class VolcengineClient {
});
service.setAccessKeyId(this.opts.access.accessKeyId);
service.setSecretKey(this.opts.access.secretAccessKey);
service.setRegion(opts?.region || "cn-north-1");
return service;
}