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";
 | 
			
		||||
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() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue