mirror of https://github.com/certd/certd
chore:
parent
f4c00ee0b6
commit
d471d2416d
|
@ -85,7 +85,10 @@ export class CnameProviderService extends BaseService<CnameProviderEntity> {
|
||||||
if (founds && founds.length > 0) {
|
if (founds && founds.length > 0) {
|
||||||
return founds[0];
|
return founds[0];
|
||||||
}
|
}
|
||||||
return CommonProviders[0] as CnameProviderEntity;
|
if (CommonProviders.length > 0) {
|
||||||
|
return CommonProviders[0] as CnameProviderEntity;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
async list(req: ListReq): Promise<any[]> {
|
async list(req: ListReq): Promise<any[]> {
|
||||||
|
|
|
@ -7,11 +7,11 @@ export type CnameProvider = {
|
||||||
title: string;
|
title: string;
|
||||||
};
|
};
|
||||||
export const CommonProviders = [
|
export const CommonProviders = [
|
||||||
{
|
// {
|
||||||
id: -1,
|
// id: -1,
|
||||||
domain: 'cname.certd.com.cn',
|
// domain: 'cname.certd.com.cn',
|
||||||
title: '公共CNAME服务',
|
// title: '公共CNAME服务',
|
||||||
},
|
// },
|
||||||
];
|
];
|
||||||
|
|
||||||
export class CommonDnsProvider implements IDnsProvider {
|
export class CommonDnsProvider implements IDnsProvider {
|
||||||
|
|
Loading…
Reference in New Issue