mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
fix: 修复没有配置eab时,报order无法读取的问题
This commit is contained in:
@@ -271,8 +271,7 @@ export class CertApplyPlugin extends CertApplyBasePlugin {
|
|||||||
this.logger.info("当前正在使用 google公共EAB授权");
|
this.logger.info("当前正在使用 google公共EAB授权");
|
||||||
eab = await this.ctx.accessService.getCommonById(this.googleCommonEabAccessId);
|
eab = await this.ctx.accessService.getCommonById(this.googleCommonEabAccessId);
|
||||||
} else {
|
} else {
|
||||||
this.logger.error("google需要配置EAB授权或服务账号授权");
|
throw new Error("google需要配置EAB授权或服务账号授权");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
} else if (this.sslProvider === "zerossl") {
|
} else if (this.sslProvider === "zerossl") {
|
||||||
if (this.eabAccessId) {
|
if (this.eabAccessId) {
|
||||||
@@ -282,8 +281,7 @@ export class CertApplyPlugin extends CertApplyBasePlugin {
|
|||||||
this.logger.info("当前正在使用 zerossl 公共EAB授权");
|
this.logger.info("当前正在使用 zerossl 公共EAB授权");
|
||||||
eab = await this.ctx.accessService.getCommonById(this.zerosslCommonEabAccessId);
|
eab = await this.ctx.accessService.getCommonById(this.zerosslCommonEabAccessId);
|
||||||
} else {
|
} else {
|
||||||
this.logger.error("zerossl需要配置EAB授权");
|
throw new Error("zerossl需要配置EAB授权");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.eab = eab;
|
this.eab = eab;
|
||||||
|
|||||||
Reference in New Issue
Block a user