From 7c70df8a664a58a254532ece80aeb3417635dc03 Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Wed, 31 Aug 2022 14:50:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=BC=82=E5=B8=B8=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/file/service/impl/GaeaFileServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/service/impl/GaeaFileServiceImpl.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/service/impl/GaeaFileServiceImpl.java index fdc1fabb..0d1de057 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/service/impl/GaeaFileServiceImpl.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/service/impl/GaeaFileServiceImpl.java @@ -122,7 +122,9 @@ public class GaeaFileServiceImpl implements GaeaFileService { } // 将完整的http访问路径返回 return gaeaFile; - } catch (Exception e) { + } catch (BusinessException e){ + throw BusinessExceptionBuilder.build(e.getCode()); + }catch (Exception e) { log.error("file upload error", e); throw BusinessExceptionBuilder.build(ResponseCode.FILE_UPLOAD_ERROR); }