mirror of https://github.com/certd/certd
fix: 修复华为云dns接口请求出错的bug
parent
cc8da0cf13
commit
caa15b4735
|
@ -2,8 +2,10 @@ import { Signer, SigHttpRequest } from "./signer.js";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
export class HuaweiYunClient {
|
export class HuaweiYunClient {
|
||||||
access;
|
access;
|
||||||
|
logger;
|
||||||
constructor(access, logger) {
|
constructor(access, logger) {
|
||||||
this.access = access;
|
this.access = access;
|
||||||
|
this.logger = logger
|
||||||
}
|
}
|
||||||
async request(options) {
|
async request(options) {
|
||||||
const sig = new Signer(this.access.accessKeyId, this.access.accessKeySecret);
|
const sig = new Signer(this.access.accessKeyId, this.access.accessKeySecret);
|
||||||
|
|
|
@ -24,7 +24,7 @@ export class HuaweiDnsProvider extends AbstractDnsProvider {
|
||||||
dnsEndpoint = 'https://dns.cn-south-1.myhuaweicloud.com';
|
dnsEndpoint = 'https://dns.cn-south-1.myhuaweicloud.com';
|
||||||
async onInstance() {
|
async onInstance() {
|
||||||
const access: any = this.access;
|
const access: any = this.access;
|
||||||
this.client = new HuaweiYunClient(access);
|
this.client = new HuaweiYunClient(access,this.logger);
|
||||||
}
|
}
|
||||||
|
|
||||||
async getDomainList() {
|
async getDomainList() {
|
||||||
|
|
Loading…
Reference in New Issue