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