Merge branch 'zcwy-0724' into dev0525

This commit is contained in:
nisen
2024-08-06 15:49:03 +08:00

View File

@@ -443,7 +443,9 @@ public class CoursePortalApi extends ApiBaseController{
} }
// 将临时文件移动到指定位置 // 将临时文件移动到指定位置
Path source = tempZipFile.toPath(); Path source = tempZipFile.toPath();
Path destination = Paths.get("/home/www/elearning/upload/saveZip" + courseName + "【作业】.zip"); //生成uuid
String uuid = UUID.randomUUID().toString();
Path destination = Paths.get("/home/www/elearning/upload/saveZip/" + uuid + ".zip");
// 删除目标文件如果已存在 // 删除目标文件如果已存在
if (Files.exists(destination)) { if (Files.exists(destination)) {