From 9b27eb01c3cdd67aded26685b68b95cb8439d5de Mon Sep 17 00:00:00 2001 From: zer0Black Date: Thu, 1 Apr 2021 08:52:28 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=B7=BB=E5=8A=A0=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=9A=E5=8A=A1=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/jero/modules/system/controller/CommonController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/CommonController.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/CommonController.java index 8a38b702..a15dc5be 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/CommonController.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/controller/CommonController.java @@ -3,6 +3,7 @@ package com.jero.modules.system.controller; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.jero.common.exception.JeroBootException; import com.jero.common.util.*; import com.jero.modules.oss.entity.OSSFile; import com.jero.modules.oss.service.IOSSFileService; @@ -121,7 +122,7 @@ public class CommonController { queryWrapper.eq(OSSFile::getId,id); OSSFile ossFile = ossFileService.getOne(queryWrapper); if( null == ossFile){ - throw new RuntimeException("文件不存在.."); + throw new JeroBootException("文件不存在.."); } String fileUrl = ossFile.getUrl(); InputStream inputStream = null;