mirror of https://github.com/certd/certd
fix: 创建cname记录移除域名两端的空格
parent
70760e4ede
commit
903a4131ab
|
@ -58,6 +58,7 @@ export class CnameRecordService extends BaseService<CnameRecordEntity> {
|
||||||
if (param.domain.startsWith('*.')) {
|
if (param.domain.startsWith('*.')) {
|
||||||
param.domain = param.domain.substring(2);
|
param.domain = param.domain.substring(2);
|
||||||
}
|
}
|
||||||
|
param.domain = param.domain.trim()
|
||||||
const info = await this.getRepository().findOne({ where: { domain: param.domain,userId: param.userId } });
|
const info = await this.getRepository().findOne({ where: { domain: param.domain,userId: param.userId } });
|
||||||
if (info) {
|
if (info) {
|
||||||
return info;
|
return info;
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
import { IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from '@certd/pipeline';
|
import {AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput} from '@certd/pipeline';
|
||||||
import { AbstractPlusTaskPlugin } from '@certd/plugin-plus';
|
|
||||||
|
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
name: 'DeployCertToTencentAll',
|
name: 'DeployCertToTencentAll',
|
||||||
title: '腾讯云-部署证书到任意云资源',
|
title: '腾讯云-部署证书到任意云资源',
|
||||||
needPlus: true,
|
needPlus: false,
|
||||||
icon: 'svg:icon-tencentcloud',
|
icon: 'svg:icon-tencentcloud',
|
||||||
group: pluginGroups.tencent.key,
|
group: pluginGroups.tencent.key,
|
||||||
desc: '需要【上传到腾讯云】作为前置任务',
|
desc: '需要【上传到腾讯云】作为前置任务',
|
||||||
|
@ -14,7 +13,7 @@ import { AbstractPlusTaskPlugin } from '@certd/plugin-plus';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
export class DeployCertToTencentAll extends AbstractPlusTaskPlugin {
|
export class DeployCertToTencentAll extends AbstractTaskPlugin {
|
||||||
/**
|
/**
|
||||||
* AccessProvider的key,或者一个包含access的具体的对象
|
* AccessProvider的key,或者一个包含access的具体的对象
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue