|
@@ -280,7 +280,7 @@ public class SystemConstant {
|
|
target = fileStoreConfig.ossDownload(path, path, fileStoreConfig.getStorageRoot());
|
|
target = fileStoreConfig.ossDownload(path, path, fileStoreConfig.getStorageRoot());
|
|
} else {
|
|
} else {
|
|
storePath = new File(fileStoreConfig.getStorageRoot());
|
|
storePath = new File(fileStoreConfig.getStorageRoot());
|
|
- target = new File(storePath, attachment.getAccessUri());
|
|
|
|
|
|
+ target = new File(storePath, attachment.getAccessUri().replaceAll("\\\\", "/"));
|
|
}
|
|
}
|
|
if (!target.exists() || !target.isFile()) {
|
|
if (!target.exists() || !target.isFile()) {
|
|
throw new JkServerException(JkServerException.SYSTEM_EXCEPTION.getCode(), "文件在服务器上不存在");
|
|
throw new JkServerException(JkServerException.SYSTEM_EXCEPTION.getCode(), "文件在服务器上不存在");
|