mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
chore: 移除autowire特性
This commit is contained in:
+1
-2
@@ -1,4 +1,3 @@
|
||||
import { Autowire } from '@certd/pipeline';
|
||||
|
||||
import { AbstractDnsProvider, CreateRecordOptions, IsDnsProvider, RemoveRecordOptions } from '@certd/plugin-cert';
|
||||
import * as _ from 'lodash-es';
|
||||
@@ -13,13 +12,13 @@ import { DnspodAccess } from '../access/index.js';
|
||||
icon: 'svg:icon-tencentcloud',
|
||||
})
|
||||
export class DnspodDnsProvider extends AbstractDnsProvider {
|
||||
@Autowire()
|
||||
access!: DnspodAccess;
|
||||
|
||||
loginToken: any;
|
||||
|
||||
endpoint = '';
|
||||
async onInstance() {
|
||||
this.access = this.ctx.access as DnspodAccess
|
||||
const access: DnspodAccess = this.access as DnspodAccess;
|
||||
this.loginToken = access.id + ',' + access.token;
|
||||
this.endpoint = access.endpoint || 'https://dnsapi.cn';
|
||||
|
||||
+1
-3
@@ -1,5 +1,3 @@
|
||||
import { Autowire } from '@certd/pipeline';
|
||||
|
||||
import { AbstractDnsProvider, CreateRecordOptions, IsDnsProvider, RemoveRecordOptions } from '@certd/plugin-cert';
|
||||
import { TencentAccess } from '@certd/plugin-lib';
|
||||
|
||||
@@ -11,7 +9,6 @@ import { TencentAccess } from '@certd/plugin-lib';
|
||||
icon: 'svg:icon-tencentcloud',
|
||||
})
|
||||
export class TencentDnsProvider extends AbstractDnsProvider {
|
||||
@Autowire()
|
||||
access!: TencentAccess;
|
||||
|
||||
client!: any;
|
||||
@@ -19,6 +16,7 @@ export class TencentDnsProvider extends AbstractDnsProvider {
|
||||
endpoint = 'dnspod.tencentcloudapi.com';
|
||||
|
||||
async onInstance() {
|
||||
this.access = this.ctx.access as TencentAccess
|
||||
const clientConfig = {
|
||||
credential: this.access,
|
||||
region: '',
|
||||
|
||||
Reference in New Issue
Block a user