fix: 修复cname记录查找bug

pull/361/head
xiaojunnuo 2025-03-12 10:17:12 +08:00
parent 818015d24a
commit 95fb4e3e8b
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ export class AcmeService {
accountKey: conf.key,
accountUrl: conf.accountUrl,
externalAccountBinding: this.eab,
backoffAttempts: 15,
backoffAttempts: 20,
backoffMin: 5000,
backoffMax: 10000,
urlMapping,

View File

@ -58,7 +58,7 @@ export class CnameRecordService extends BaseService<CnameRecordEntity> {
if (param.domain.startsWith('*.')) {
param.domain = param.domain.substring(2);
}
const info = await this.getRepository().findOne({ where: { domain: param.domain } });
const info = await this.getRepository().findOne({ where: { domain: param.domain,userId: param.userId } });
if (info) {
return info;
}