perf: gcore flush plugin ssl_id改为必填项

v2
xiaojunnuo 2025-09-16 10:26:16 +08:00
parent f4ff34224c
commit 4b90972341
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,7 @@ export class GcoreflushPlugin extends AbstractTaskPlugin {
certName!: string;
@TaskInput({
title: '证书ID',
required:true,
})
ssl_id!: string;
@ -66,6 +67,10 @@ export class GcoreflushPlugin extends AbstractTaskPlugin {
async execute(): Promise<void> {
const { cert, accessId } = this;
if(!this.ssl_id){
throw new Error('请填写要刷新的证书ID');
}
const access = (await this.getAccess(accessId)) as GcoreAccess;
let otp = null;
if (access.otpkey) {