mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-04-05 17:37:49 +08:00
修复启用反代后压缩包 解压后找不到路径
修复启用反代后压缩包 解压后找不到路径 Signed-off-by: 高雄 <admin@cxcp.com>
This commit is contained in:
parent
ab56253198
commit
f7fa8278be
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user