From 657a2ae032e6f61ac27fbdd26c7bf169c041219e Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Wed, 11 Dec 2024 09:30:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E9=85=8D=E7=BD=AEeab=E6=97=B6=EF=BC=8C=E6=8A=A5order=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E8=AF=BB=E5=8F=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/plugin-cert/src/plugin/cert-plugin/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts b/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts index 4d62dca48..aba9a1aef 100644 --- a/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts +++ b/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts @@ -271,8 +271,7 @@ export class CertApplyPlugin extends CertApplyBasePlugin { this.logger.info("当前正在使用 google公共EAB授权"); eab = await this.ctx.accessService.getCommonById(this.googleCommonEabAccessId); } else { - this.logger.error("google需要配置EAB授权或服务账号授权"); - return; + throw new Error("google需要配置EAB授权或服务账号授权"); } } else if (this.sslProvider === "zerossl") { if (this.eabAccessId) { @@ -282,8 +281,7 @@ export class CertApplyPlugin extends CertApplyBasePlugin { this.logger.info("当前正在使用 zerossl 公共EAB授权"); eab = await this.ctx.accessService.getCommonById(this.zerosslCommonEabAccessId); } else { - this.logger.error("zerossl需要配置EAB授权"); - return; + throw new Error("zerossl需要配置EAB授权"); } } this.eab = eab;