perf: 阿里云CDN部署支持根据证书域名自动匹配部署

This commit is contained in:
xiaojunnuo
2026-03-29 02:25:45 +08:00
parent c6a988bc92
commit a68301e4dc
4 changed files with 159 additions and 90 deletions
+2 -2
View File
@@ -377,13 +377,13 @@ export abstract class AbstractTaskPlugin implements ITaskPlugin {
async autoMatchedDeploy(req: {
targetName: string;
getCertDomains: () => string[];
getCertDomains: () => Promise<string[]>;
uploadCert: () => Promise<any>;
deployOne: (req: { target: any; cert: any }) => Promise<void>;
getDeployTargetList: (req: PageSearch) => Promise<{ list: CertTargetItem[]; total: number }>;
}): Promise<{ result: any; deployedList: any[] }> {
this.logger.info("证书匹配模式部署");
const certDomains = req.getCertDomains();
const certDomains = await req.getCertDomains();
const certTargetList = await this.getAutoMatchedTargets({
targetName: req.targetName,
pageSize: 200,