From 4c25b8ab4bdd1e1b2a6c7727a3090b93501e2a33 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Fri, 13 May 2022 10:42:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=BA=94=E7=94=A8=E5=88=B0?= =?UTF-8?q?=E7=BD=91=E5=85=B3=E5=A4=B1=E8=B4=A5=20=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E9=98=BB=E5=A1=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resourceMountApply/listener/ResourceOwnerListener.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/renren-admin/src/main/java/io/renren/modules/resourceMountApply/listener/ResourceOwnerListener.java b/renren-admin/src/main/java/io/renren/modules/resourceMountApply/listener/ResourceOwnerListener.java index 462a70b6..ce48f155 100644 --- a/renren-admin/src/main/java/io/renren/modules/resourceMountApply/listener/ResourceOwnerListener.java +++ b/renren-admin/src/main/java/io/renren/modules/resourceMountApply/listener/ResourceOwnerListener.java @@ -130,7 +130,11 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A re.setDelFlag(0); resourceService.update(re); logger.error("审批通过!资源id:" + re.getId()); - apiGatewayService.registerApi2Gateway(String.valueOf(re.getId())); // 发布到应用网关 + try { + apiGatewayService.registerApi2Gateway(String.valueOf(re.getId())); // 发布到应用网关 + } catch (Exception exception) { + logger.error("发布到应用网关", exception); + } } }