Browse Source

下载文件bug解决测试

dev-active_learn
chenzhihang 10 months ago
parent
commit
4c40fcd102
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java

+ 1
- 1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java View File

@@ -892,7 +892,7 @@ public class ModelsServiceImpl implements ModelsService {
String localPath1 = localPath + ci4sUsername + "/model/" + id + "/" + identifier + "/" + version; String localPath1 = localPath + ci4sUsername + "/model/" + id + "/" + identifier + "/" + version;
// 打包 data 文件夹 // 打包 data 文件夹
String dataFolderPath = localPath1 + "/model"; String dataFolderPath = localPath1 + "/model";
String zipFilePath = localPath1 + "/model.zip";
String zipFilePath = localPath1 + "/model";
try (FileOutputStream fos = new FileOutputStream(zipFilePath); try (FileOutputStream fos = new FileOutputStream(zipFilePath);
ZipOutputStream zos = new ZipOutputStream(fos)) { ZipOutputStream zos = new ZipOutputStream(fos)) {
Path sourcePath = Paths.get(dataFolderPath); Path sourcePath = Paths.get(dataFolderPath);


Loading…
Cancel
Save