mirror of https://github.com/certd/certd
parent
eff7645035
commit
78e7a81638
|
@ -17,14 +17,14 @@ import { CertApplyPluginNames} from '@certd/plugin-cert';
|
||||||
export class WoaiCdnPlugin extends AbstractTaskPlugin {
|
export class WoaiCdnPlugin extends AbstractTaskPlugin {
|
||||||
@TaskInput({
|
@TaskInput({
|
||||||
title: '接口地址(可留空)',
|
title: '接口地址(可留空)',
|
||||||
helper: '请填写我爱云的地址, 默认为 [API](https://console.edeg.sxhjgy.cn) 末尾请不要携带`/`',
|
helper: '请填写我爱云的地址, 默认为 [API](https://console.edge.ttzi.cn) 末尾请不要携带`/`',
|
||||||
component: { name: 'a-input' },
|
component: { name: 'a-input' },
|
||||||
required: false,
|
required: false,
|
||||||
})
|
})
|
||||||
baseApi?: string;
|
baseApi?: string;
|
||||||
@TaskInput({
|
@TaskInput({
|
||||||
title: '证书ID',
|
title: '证书ID',
|
||||||
helper: '请填写 [证书列表](https://console.edge.sxhjgy.cn/site/certificate) 中的证书的ID',
|
helper: '请填写 [证书列表](https://console.edge.ttzi.cn/site/certificate) 中的证书的ID',
|
||||||
component: { name: 'a-input' },
|
component: { name: 'a-input' },
|
||||||
required: true,
|
required: true,
|
||||||
})
|
})
|
||||||
|
@ -73,9 +73,9 @@ export class WoaiCdnPlugin extends AbstractTaskPlugin {
|
||||||
const { baseApi, certId, cert, accessId } = this;
|
const { baseApi, certId, cert, accessId } = this;
|
||||||
const access = (await this.getAccess(accessId)) as WoaiAccess;
|
const access = (await this.getAccess(accessId)) as WoaiAccess;
|
||||||
// 使用默认值或用户输入的值
|
// 使用默认值或用户输入的值
|
||||||
const apiBase = baseApi || 'https://console.edeg.sxhjgy.cn';
|
const apiBase = baseApi || 'https://console.edge.ttzi.cn';
|
||||||
// 登录获取token
|
// 登录获取token
|
||||||
const loginResponse = await this.doRequestApi(`${apiBase}/account/login`, {
|
const loginResponse = await this.doRequestApi(`${apiBase}/login`, {
|
||||||
username: access.username,
|
username: access.username,
|
||||||
password: access.password,
|
password: access.password,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue