修复CAD文件预览错误

修复CAD文件预览错误

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

@ -49,7 +49,8 @@ public class DownloadUtils {
logger.error("忽略SSL证书异常:", e); logger.error("忽略SSL证书异常:", e);
} }
ReturnResponse<String> response = new ReturnResponse<>(0, "下载成功!!!", ""); ReturnResponse<String> response = new ReturnResponse<>(0, "下载成功!!!", "");
if (!KkFileUtils.isAllowedUpload(fileName)) { String realPath = getRelFilePath(fileName, fileAttribute);
if (!KkFileUtils.isAllowedUpload(realPath)) {
response.setCode(1); response.setCode(1);
response.setContent(null); response.setContent(null);
response.setMsg("下载失败:不支持的类型!" + urlStr); response.setMsg("下载失败:不支持的类型!" + urlStr);
@ -61,7 +62,6 @@ public class DownloadUtils {
response.setMsg(fileName); response.setMsg(fileName);
return response; return response;
} }
String realPath = DownloadUtils.getRelFilePath(fileName, fileAttribute);
if(!StringUtils.hasText(realPath)){ if(!StringUtils.hasText(realPath)){
response.setCode(1); response.setCode(1);
response.setContent(null); response.setContent(null);

Loading…
Cancel
Save