mirror of
https://github.com/certd/certd.git
synced 2026-04-15 13:32:37 +08:00
fix: 修复西部数码账户级别apikey不可用的bug
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { HttpClient, IAccess, ILogger, Registrable } from "@certd/pipeline";
|
||||
import { HttpClient, IAccess, ILogger, Registrable, utils } from "@certd/pipeline";
|
||||
|
||||
export type DnsProviderDefine = Registrable & {
|
||||
accessType: string;
|
||||
@@ -22,6 +22,7 @@ export type DnsProviderContext = {
|
||||
access: IAccess;
|
||||
logger: ILogger;
|
||||
http: HttpClient;
|
||||
utils: typeof utils;
|
||||
};
|
||||
|
||||
export interface IDnsProvider<T = any> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Decorator, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from "@certd/pipeline";
|
||||
import { Decorator, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput, utils } from "@certd/pipeline";
|
||||
import type { CertInfo, PrivateKeyType, SSLProvider } from "./acme.js";
|
||||
import { AcmeService } from "./acme.js";
|
||||
import _ from "lodash-es";
|
||||
@@ -181,7 +181,7 @@ export class CertApplyPlugin extends CertApplyBasePlugin {
|
||||
|
||||
// @ts-ignore
|
||||
const dnsProvider: IDnsProvider = new DnsProviderClass();
|
||||
const context: DnsProviderContext = { access, logger: this.logger, http: this.http };
|
||||
const context: DnsProviderContext = { access, logger: this.logger, http: this.http, utils };
|
||||
Decorator.inject(dnsProviderDefine.autowire, dnsProvider, context);
|
||||
dnsProvider.setCtx(context);
|
||||
await dnsProvider.onInstance();
|
||||
|
||||
Reference in New Issue
Block a user