fix: 创建cname记录移除域名两端的空格

This commit is contained in:
xiaojunnuo
2025-04-03 11:39:36 +08:00
parent 70760e4ede
commit 903a4131ab
2 changed files with 4 additions and 4 deletions
@@ -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;