mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-06 09:26:48 +08:00
作业导出修改名称
This commit is contained in:
@@ -443,7 +443,9 @@ public class CoursePortalApi extends ApiBaseController{
|
||||
}
|
||||
// 将临时文件移动到指定位置
|
||||
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)) {
|
||||
|
||||
Reference in New Issue
Block a user