fix: 修复旧版1panel插件 报sslIds is not iterable的错误

This commit is contained in:
xiaojunnuo
2026-03-17 09:13:29 +08:00
parent 64e8adddfd
commit 50db6f0765

View File

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