From b6e33668eccfbd3053b14dd6c82f64199300e971 Mon Sep 17 00:00:00 2001 From: shahaibo <1023316923@qq.com> Date: Fri, 6 Oct 2023 10:28:01 +0800 Subject: [PATCH] =?UTF-8?q?BUGFIX:=E6=A8=A1=E7=89=B9;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ai/da/service/impl/DesignServiceImpl.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java b/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java index d50a07b4..1cb75f53 100644 --- a/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java @@ -885,12 +885,12 @@ public class DesignServiceImpl extends ServiceImpl impleme try { response = client.newCall(request).execute(); } catch (IOException ioException) { - log.error("PythonService##design异常###{}", ExceptionUtil.getThrowableList(ioException)); + log.error("PythonService##design进度条异常###{}", ExceptionUtil.getThrowableList(ioException)); } //去除限流 // AccessLimitUtils.validateOut("design"); if (Objects.isNull(response)) { - log.error("PythonService##design异常###{}", "response or body is empty!"); + log.error("PythonService##design进度条异常###{}", "response or body is empty!"); throw new BusinessException("system error!"); } if (response.isSuccessful()) { @@ -903,8 +903,7 @@ public class DesignServiceImpl extends ServiceImpl impleme throw new RuntimeException(e); } } - //生成失败 - throw new BusinessException("generate design exception!"); + return 0; } private String converTypeToLevel1(String type) {