|
@@ -137,7 +137,10 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
|
|
|
if(!newObjFile.getParentFile().exists()){
|
|
|
newObjFile.getParentFile().mkdirs();
|
|
|
}
|
|
|
+
|
|
|
+ // file.transferTo(newObjFile); 异步会出现 FileNotFoundException temp.
|
|
|
FileUtils.copyInputStreamToFile(file.getInputStream(), newObjFile);
|
|
|
+
|
|
|
if(fileName.toLowerCase().endsWith(".zip")){
|
|
|
ShellUtil.unZip(newObjFile.getPath(),objPath);
|
|
|
}
|