pull/229/head
xiaojunnuo 2024-10-29 18:13:24 +08:00
parent 81a3fdbc29
commit 12cebea29e
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ export class HauweiDeployCertToCDN extends AbstractTaskPlugin {
const { client, cdn } = await this.getCdnClient(); const { client, cdn } = await this.getCdnClient();
const request = new cdn.ListDomainsRequest(); const request = new cdn.ListDomainsRequest();
request.pageNumber = 1000; request.pageNumber = 1;
request.pageSize = 1000;
const result = await client.listDomains(request); const result = await client.listDomains(request);
if (!result || !result.domains || result.domains.length === 0) { if (!result || !result.domains || result.domains.length === 0) {
throw new Error('未找到CDN域名您可以手动输入'); throw new Error('未找到CDN域名您可以手动输入');