mirror of https://github.com/certd/certd
chore:
parent
836d18f07e
commit
d9efc3d4d8
|
@ -49,6 +49,7 @@
|
|||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"log4js": "^6.7.1",
|
||||
"mocha": "^10.1.0",
|
||||
"prettier": "3.0.1",
|
||||
"rollup": "^3.7.4",
|
||||
"rollup-plugin-visualizer": "^5.8.2",
|
||||
"ts-node": "^10.9.1",
|
||||
|
|
|
@ -55,7 +55,7 @@ export class DnspodDnsProvider implements IDnsProvider {
|
|||
const ret = await this.doRequest({
|
||||
url: this.access.endpoint + "/Domain.List",
|
||||
});
|
||||
this.logger.debug("dnspod 域名列表:", ret.domains);
|
||||
this.logger.info("dnspod 域名列表:", ret.domains);
|
||||
return ret.domains;
|
||||
}
|
||||
|
||||
|
@ -101,6 +101,9 @@ export class DnspodDnsProvider implements IDnsProvider {
|
|||
|
||||
async matchDomain(dnsRecord: any) {
|
||||
const list = await this.getDomainList();
|
||||
if(list == null){
|
||||
throw new Error("域名列表不能为空")
|
||||
}
|
||||
let domain = null;
|
||||
for (const item of list) {
|
||||
if (_.endsWith(dnsRecord, "." + item.name)) {
|
||||
|
|
Loading…
Reference in New Issue