mirror of
https://github.com/certd/certd.git
synced 2026-04-28 07:57:25 +08:00
chore:
This commit is contained in:
@@ -194,6 +194,7 @@ export class AliyunDeployCertToWaf extends AbstractTaskPlugin {
|
|||||||
if (!res?.Domains || res?.Domains.length === 0) {
|
if (!res?.Domains || res?.Domains.length === 0) {
|
||||||
throw new Error('没有找到CNAME接入的域名站点');
|
throw new Error('没有找到CNAME接入的域名站点');
|
||||||
}
|
}
|
||||||
|
const total = res.TotalCount;
|
||||||
|
|
||||||
const options = res.Domains.map((item: any) => {
|
const options = res.Domains.map((item: any) => {
|
||||||
return {
|
return {
|
||||||
@@ -203,7 +204,14 @@ export class AliyunDeployCertToWaf extends AbstractTaskPlugin {
|
|||||||
domain: item.Domain,
|
domain: item.Domain,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
return this.ctx.utils.options.buildGroupOptions(options, this.certDomains);
|
const list= this.ctx.utils.options.buildGroupOptions(options, this.certDomains);
|
||||||
|
|
||||||
|
return {
|
||||||
|
list,
|
||||||
|
total: total,
|
||||||
|
offset: pager.offset,
|
||||||
|
limit: pager.limit
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user