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); + } } }