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