Browse Source

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
commit
a867effa68
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
  1. 2
      server/src/main/java/cn/keking/utils/DownloadUtils.java

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

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

Loading…
Cancel
Save