mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
fix: 修复旧版1panel插件 报sslIds is not iterable的错误
This commit is contained in:
@@ -89,7 +89,10 @@ export class OnePanelDeployToWebsitePlugin extends AbstractTaskPlugin {
|
||||
utils: this.ctx.utils,
|
||||
});
|
||||
|
||||
const sslIds = this.sslIds;
|
||||
let sslIds = this.sslIds || [];
|
||||
if (typeof sslIds === "string") {
|
||||
sslIds = [sslIds];
|
||||
}
|
||||
for (const sslId of sslIds) {
|
||||
try {
|
||||
const certRes = await this.get1PanelCertInfo(client, sslId);
|
||||
|
||||
Reference in New Issue
Block a user