|
@@ -768,7 +768,13 @@ public class TeachcloudCommonServiceImpl implements TeachcloudCommonService {
|
|
}
|
|
}
|
|
File zipFile = null;
|
|
File zipFile = null;
|
|
try {
|
|
try {
|
|
- zipFile = FileUtil.file(SystemConstant.TEMP_FILES_DIR + File.separator + schoolId, time + ".zip");
|
|
|
|
|
|
+ String zipPath = SystemConstant.TEMP_FILES_DIR + File.separator + schoolId;
|
|
|
|
+ File zipPathFile = new File(zipPath);
|
|
|
|
+ if(!zipPathFile.exists()){
|
|
|
|
+ zipPathFile.mkdirs();
|
|
|
|
+ }
|
|
|
|
+ zipFile = FileUtil.file(zipPath, time + ".zip");
|
|
|
|
+
|
|
// 压缩文件
|
|
// 压缩文件
|
|
if (!zipFile.exists()) {
|
|
if (!zipFile.exists()) {
|
|
zipFile.createNewFile();
|
|
zipFile.createNewFile();
|