update server/src/main/java/cn/keking/utils/DownloadUtils.java.

调整下载报错

Signed-off-by: 高雄 <admin@cxcp.com>
pull/76/head
高雄 2 years ago committed by Gitee
parent 058ebd8274
commit a867effa68
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -75,7 +75,7 @@ public class DownloadUtils {
response.setMsg(fileName); response.setMsg(fileName);
return response; return response;
} catch (IOException | GalimatiasParseException e) { } catch (IOException | GalimatiasParseException e) {
logger.error("文件下载失败url{}", urlStr, e); logger.error("文件下载失败url{}", urlStr);
response.setCode(1); response.setCode(1);
response.setContent(null); response.setContent(null);
if (e instanceof FileNotFoundException) { if (e instanceof FileNotFoundException) {

Loading…
Cancel
Save