perf: 优化阿里云waf的日志信息

pull/453/head
xiaojunnuo 2025-06-24 11:26:38 +08:00
parent 991b741cbe
commit 821c6d807d
2 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
show: false,
},
form: {
show: false,
component: {
valuesFormat: {
labelFormatter: (item: any) => {

View File

@ -132,6 +132,7 @@ export class AliyunDeployCertToWaf extends AbstractTaskPlugin {
const client = await this.getWafClient(access);
const instanceId = await this.getInstanceId(client);
for (const siteDomain of this.cnameDomains) {
this.logger.info('开始部署', siteDomain);
const params = {
RegionId: this.regionId,
InstanceId: instanceId,
@ -140,6 +141,9 @@ export class AliyunDeployCertToWaf extends AbstractTaskPlugin {
const siteDetail = await client.request('DescribeDomainDetail', params);
this.logger.info('站点详情', JSON.stringify(siteDetail));
const listen = siteDetail.Listen;
if (!listen) {
throw new Error(`没有找到${siteDomain}的监听器`);
}
/**
* "HttpsPorts": [
* 443