fix(aliyun): 修复阿里云CDN/DCDN根据证书自动匹配不到证书的bug

This commit is contained in:
xiaojunnuo
2026-07-03 00:21:50 +08:00
parent 82276b53a8
commit 1ae185d0bc
3 changed files with 58 additions and 9 deletions
@@ -254,13 +254,16 @@ export class DeployCertToAliyunCDN extends AbstractTaskPlugin {
const client = await this.getClient(access);
const pager = new Pager(data);
const params = {
DomainName: data.searchKey,
const params: any = {
PageSize: pager.pageSize || 100,
PageNumber: pager.pageNo || 1,
DomainSearchType: "fuzzy_match",
};
if (data.searchKey) {
params.DomainName = data.searchKey;
}
const requestOption = {
method: "POST",
formatParams: false,
@@ -100,7 +100,7 @@ export class DeployCertToAliyunDCDN extends AbstractTaskPlugin {
if (this.domainMatchMode === "auto") {
const { result, deployedList } = await this.autoMatchedDeploy({
targetName: "CDN加速域名",
targetName: "DCDN加速域名",
uploadCert: async () => {
return await sslClient.uploadCertOrGet(this.cert);
},
@@ -190,13 +190,15 @@ export class DeployCertToAliyunDCDN extends AbstractTaskPlugin {
const client = await this.getClient(access);
const pager = new Pager(data);
const params = {
DomainName: data.searchKey,
const params: any = {
PageSize: pager.pageSize || 200,
PageNumber: pager.pageNo || 1,
DomainSearchType: "fuzzy_match",
};
if (data.searchKey) {
params.DomainName = data.searchKey;
}
const requestOption = {
method: "POST",
formatParams: false,