mirror of https://github.com/certd/certd
chore:
parent
7ad5bcffb5
commit
56711c6040
|
@ -3,11 +3,11 @@ import {CertInfo} from '@certd/plugin-cert';
|
|||
import { WoaiAccess } from '../access.js';
|
||||
|
||||
@IsTaskPlugin({
|
||||
name: 'woaiCloud',
|
||||
name: 'WoaiCDN',
|
||||
title: '部署证书到我爱云 CDN',
|
||||
desc: '部署证书到我爱云CDN',
|
||||
icon: 'clarity:plugin-line',
|
||||
group: pluginGroups.other.key,
|
||||
group: pluginGroups.cdn.key,
|
||||
default: {
|
||||
strategy: {
|
||||
runStrategy: RunStrategy.SkipWhenSucceed,
|
||||
|
@ -17,7 +17,7 @@ import {WoaiAccess} from '../access.js';
|
|||
export class WoaiCdnPlugin extends AbstractTaskPlugin {
|
||||
@TaskInput({
|
||||
title: '证书ID',
|
||||
helper: '请填写 <a href="https://console.edge.51vs.club/site/certificate" target="_blank">证书列表</a> 中的证书的ID',
|
||||
helper: '请填写 [证书列表](https://console.edge.51vs.club/site/certificate) 中的证书的ID',
|
||||
component: { name: 'a-input' },
|
||||
required: true,
|
||||
})
|
||||
|
@ -52,7 +52,7 @@ export class WoaiCdnPlugin extends AbstractTaskPlugin {
|
|||
private async doRequestApi(url: string, data: any = null, method = 'post', token: string | null = null) {
|
||||
const headers = {
|
||||
'Content-Type': 'application/json',
|
||||
...(token ? {'Token': token} : {}),
|
||||
...(token ? { Token: token } : {}),
|
||||
};
|
||||
const res = await this.http.request<any, any>({
|
||||
url,
|
||||
|
|
Loading…
Reference in New Issue