修复启用反代后压缩包 解压后找不到路径

修复启用反代后压缩包 解压后找不到路径

Signed-off-by: 高雄 <admin@cxcp.com>
pull/126/head
高雄 2023-04-27 03:06:18 +00:00 committed by Gitee
parent ab56253198
commit f7fa8278be
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 4 additions and 1 deletions

View File

@ -329,7 +329,10 @@ public class FileHandlerService {
suffix = WebUtils.suffixFromUrl(url);
}
if (url.contains("?fileKey=")) {
fileName = urlStrr;
String[] strs = url.split("="); //处理解压后有反代情况下 文件的路径
String urlStrr = getSubString(url, strs[1]);
urlStrr = urlStrr.substring(0,urlStrr.lastIndexOf("?"));
fileName = strs[1] + urlStrr.trim();
attribute.setSkipDownLoad(true);
}
// System.out.println(fileName);