fix: 更新我爱云CDN域名地址,和部分目录结构 @tyjsjxh (#514)

更新我爱云CDN域名地址,和部分目录结构
v2-dev-plugin-config
SHAREWEBS 2025-08-25 16:30:23 +08:00 committed by GitHub
parent eff7645035
commit 78e7a81638
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -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,
}); });