|
@@ -641,7 +641,7 @@ public class TeachcloudCommonServiceImpl implements TeachcloudCommonService {
|
|
|
@Override
|
|
|
public void downloadFileAndZip(HttpServletResponse response, String rootPath, List<File> files) {
|
|
|
long time = System.currentTimeMillis();
|
|
|
- File zipFile = SystemConstant.getFileTempDirVar(System.currentTimeMillis() + SystemConstant.ZIP_PREFIX, null);
|
|
|
+ File zipFile = SystemConstant.getFileTempDirVarForZip(System.currentTimeMillis() + SystemConstant.ZIP_PREFIX, null);
|
|
|
try {
|
|
|
Zip4jUtil.zipEncryptFile(zipFile.getPath(), files, SystemConstant.ZIP_ENCRYPT_PWD);
|
|
|
outputFile(response, zipFile, String.valueOf(time));
|
|
@@ -664,7 +664,7 @@ public class TeachcloudCommonServiceImpl implements TeachcloudCommonService {
|
|
|
@Override
|
|
|
public void downloadFileAndZip(HttpServletResponse response, String rootPath, String zipRootPath) {
|
|
|
long time = System.currentTimeMillis();
|
|
|
- File zipFile = SystemConstant.getFileTempDirVar(time + SystemConstant.ZIP_PREFIX, null);
|
|
|
+ File zipFile = SystemConstant.getFileTempDirVarForZip(time + SystemConstant.ZIP_PREFIX, null);
|
|
|
try {
|
|
|
Zip4jUtil.zipEncryptFile(zipFile.getPath(), zipRootPath, SystemConstant.ZIP_ENCRYPT_PWD);
|
|
|
outputFile(response, zipFile, String.valueOf(time));
|
|
@@ -680,7 +680,7 @@ public class TeachcloudCommonServiceImpl implements TeachcloudCommonService {
|
|
|
|
|
|
@Override
|
|
|
public void downloadFileAndZip(HttpServletResponse response, String rootPath, long time) {
|
|
|
- File zipFile = SystemConstant.getFileTempDirVar(time + SystemConstant.ZIP_PREFIX, null);
|
|
|
+ File zipFile = SystemConstant.getFileTempDirVarForZip(time + SystemConstant.ZIP_PREFIX, null);
|
|
|
try {
|
|
|
Zip4jUtil.zipEncryptFile(zipFile.getPath(), rootPath, SystemConstant.ZIP_ENCRYPT_PWD);
|
|
|
outputFile(response, zipFile, String.valueOf(time));
|