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('*.')) {
|
||||
param.domain = param.domain.substring(2);
|
||||
}
|
||||
param.domain = param.domain.trim()
|
||||
const info = await this.getRepository().findOne({ where: { domain: param.domain,userId: param.userId } });
|
||||
if (info) {
|
||||
return info;
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
import { IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from '@certd/pipeline';
|
||||
import { AbstractPlusTaskPlugin } from '@certd/plugin-plus';
|
||||
import {AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput} from '@certd/pipeline';
|
||||
|
||||
@IsTaskPlugin({
|
||||
name: 'DeployCertToTencentAll',
|
||||
title: '腾讯云-部署证书到任意云资源',
|
||||
needPlus: true,
|
||||
needPlus: false,
|
||||
icon: 'svg:icon-tencentcloud',
|
||||
group: pluginGroups.tencent.key,
|
||||
desc: '需要【上传到腾讯云】作为前置任务',
|
||||
|
@ -14,7 +13,7 @@ import { AbstractPlusTaskPlugin } from '@certd/plugin-plus';
|
|||
},
|
||||
},
|
||||
})
|
||||
export class DeployCertToTencentAll extends AbstractPlusTaskPlugin {
|
||||
export class DeployCertToTencentAll extends AbstractTaskPlugin {
|
||||
/**
|
||||
* AccessProvider的key,或者一个包含access的具体的对象
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue