fix: 修复华为云dns接口请求出错的bug

pull/361/head
xiaojunnuo 2025-03-28 21:23:29 +08:00
parent cc8da0cf13
commit caa15b4735
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -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() {