mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 19:06:49 +08:00
作业导出bug
This commit is contained in:
@@ -428,18 +428,17 @@ public class CoursePortalApi extends ApiBaseController{
|
|||||||
}
|
}
|
||||||
|
|
||||||
zos.closeEntry();
|
zos.closeEntry();
|
||||||
|
|
||||||
StringBuilder contentDispositionValue = new StringBuilder();
|
|
||||||
contentDispositionValue.append("attachment; filename=")
|
|
||||||
.append(encodedFilename)
|
|
||||||
.append(";")
|
|
||||||
.append("filename*=")
|
|
||||||
.append("utf-8''")
|
|
||||||
.append(encodedFilename);
|
|
||||||
// 设置响应类型和Content-Disposition头
|
|
||||||
response.setContentType("application/zip");
|
|
||||||
response.setHeader("Content-Disposition", contentDispositionValue.toString());
|
|
||||||
}
|
}
|
||||||
|
StringBuilder contentDispositionValue = new StringBuilder();
|
||||||
|
contentDispositionValue.append("attachment; filename=")
|
||||||
|
.append(encodedFilename)
|
||||||
|
.append(";")
|
||||||
|
.append("filename*=")
|
||||||
|
.append("utf-8''")
|
||||||
|
.append(encodedFilename);
|
||||||
|
// 设置响应类型和Content-Disposition头
|
||||||
|
response.setContentType("application/zip");
|
||||||
|
response.setHeader("Content-Disposition", contentDispositionValue.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@GetMapping("/detail-study")
|
@GetMapping("/detail-study")
|
||||||
|
|||||||
Reference in New Issue
Block a user