update server/src/main/java/cn/keking/utils/DownloadUtils.java.
调整下载报错 Signed-off-by: 高雄 <admin@cxcp.com>pull/76/head
parent
058ebd8274
commit
a867effa68
|
@ -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…
Reference in New Issue