mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
fix: 修复华为云dns接口请求出错的bug
This commit is contained in:
@@ -2,8 +2,10 @@ import { Signer, SigHttpRequest } from "./signer.js";
|
||||
import axios from "axios";
|
||||
export class HuaweiYunClient {
|
||||
access;
|
||||
logger;
|
||||
constructor(access, logger) {
|
||||
this.access = access;
|
||||
this.logger = logger
|
||||
}
|
||||
async request(options) {
|
||||
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';
|
||||
async onInstance() {
|
||||
const access: any = this.access;
|
||||
this.client = new HuaweiYunClient(access);
|
||||
this.client = new HuaweiYunClient(access,this.logger);
|
||||
}
|
||||
|
||||
async getDomainList() {
|
||||
|
||||
Reference in New Issue
Block a user