pull/243/head
xiaojunnuo 2024-11-04 18:09:24 +08:00
parent f4c00ee0b6
commit d471d2416d
2 changed files with 9 additions and 6 deletions

View File

@ -85,8 +85,11 @@ export class CnameProviderService extends BaseService<CnameProviderEntity> {
if (founds && founds.length > 0) {
return founds[0];
}
if (CommonProviders.length > 0) {
return CommonProviders[0] as CnameProviderEntity;
}
return null;
}
async list(req: ListReq): Promise<any[]> {
const list = await super.list(req);

View File

@ -7,11 +7,11 @@ export type CnameProvider = {
title: string;
};
export const CommonProviders = [
{
id: -1,
domain: 'cname.certd.com.cn',
title: '公共CNAME服务',
},
// {
// id: -1,
// domain: 'cname.certd.com.cn',
// title: '公共CNAME服务',
// },
];
export class CommonDnsProvider implements IDnsProvider {