|
@@ -108,8 +108,7 @@ public class FileFactoryService {
|
|
|
public byte[] downloadFromFSS(DownloadSysFileDTO downloadSysFileDTO, ConfigSettingVO configSettingVO) throws Exception {
|
|
|
//下载目录,也是存储路径
|
|
|
String filePath = downloadSysFileDTO.getFilePath();
|
|
|
- int index = filePath.lastIndexOf("/");
|
|
|
- String directory = filePath.substring(0, index);
|
|
|
+ String directory = filePath.substring(0, filePath.lastIndexOf("\\"));
|
|
|
//下载的文件,也就是文件名
|
|
|
String downloadFile = downloadSysFileDTO.getFileName();
|
|
|
//存在本地的路径,随机生成
|