|
@@ -127,6 +127,7 @@ public class CaseNumServiceImpl extends ServiceImpl<ICaseNumMapper, CaseNumEntit
|
|
|
File localFile = new File(objPath);
|
|
|
this.toGlB(localFile,localGlbPaths);
|
|
|
|
|
|
+ Long modelSize = 0L;
|
|
|
if(localGlbPaths.size() >0){
|
|
|
for (String localGlbPath : localGlbPaths) {
|
|
|
String ossGlbPath = localGlbPath.replace(FilePath.LOCAL_BASE_PATH,"fusion/");
|
|
@@ -137,19 +138,19 @@ public class CaseNumServiceImpl extends ServiceImpl<ICaseNumMapper, CaseNumEntit
|
|
|
}
|
|
|
File file = new File(localGlbPath);
|
|
|
if(file!=null){
|
|
|
- model.setModelSize(FileWriterUtil.setFileSize(file.length()));
|
|
|
+ modelSize += file.length();
|
|
|
}
|
|
|
continue;
|
|
|
}
|
|
|
File file = new File(localGlbPath);
|
|
|
if(file!=null){
|
|
|
- model.setModelSize(FileWriterUtil.setFileSize(file.length()));
|
|
|
+ modelSize += file.length();
|
|
|
}
|
|
|
ossGlbPaths.add(queryPath +ossGlbPath);
|
|
|
}
|
|
|
return JSONArray.toJSONString(ossGlbPaths);
|
|
|
}
|
|
|
-
|
|
|
+ model.setModelSize(FileWriterUtil.setFileSize(modelSize));
|
|
|
FileUtil.del(objPath);
|
|
|
}
|
|
|
return null;
|