发布应用到网关失败 防止流程阻塞

This commit is contained in:
wangliwen 2022-05-13 10:42:25 +08:00
parent 1cce4f9888
commit 4c25b8ab4b
1 changed files with 5 additions and 1 deletions

View File

@ -130,7 +130,11 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
re.setDelFlag(0);
resourceService.update(re);
logger.error("审批通过资源id:" + re.getId());
try {
apiGatewayService.registerApi2Gateway(String.valueOf(re.getId())); // 发布到应用网关
} catch (Exception exception) {
logger.error("发布到应用网关", exception);
}
}
}