|
@@ -122,10 +122,11 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
|
|
ExecutorService executor = ThreadUtil.newSingleExecutor();
|
|
ExecutorService executor = ThreadUtil.newSingleExecutor();
|
|
try {
|
|
try {
|
|
CompletableFuture.runAsync(() -> {
|
|
CompletableFuture.runAsync(() -> {
|
|
|
|
+ File newObjFile = null;
|
|
|
|
+ File objPathFile = null;
|
|
|
|
+ File mntFile = null;
|
|
try {
|
|
try {
|
|
String fileName = UUID.randomUUID().toString().replace("-","") +".zip";
|
|
String fileName = UUID.randomUUID().toString().replace("-","") +".zip";
|
|
- File newObjFile = null;
|
|
|
|
- File objPathFile = null;
|
|
|
|
String objPath = String.format(FilePath.OBJ_LOCAL_PATH,environment , "modelId_"+model.getModelId()) ;
|
|
String objPath = String.format(FilePath.OBJ_LOCAL_PATH,environment , "modelId_"+model.getModelId()) ;
|
|
log.info("uploadObj--ThreadStart-fileName:{},modeId:{}",fileName,model.getModelId());
|
|
log.info("uploadObj--ThreadStart-fileName:{},modeId:{}",fileName,model.getModelId());
|
|
|
|
|
|
@@ -164,8 +165,6 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
|
|
}
|
|
}
|
|
redisUtil.set(RedisKeyUtil.modelUpload+model.getModelId(),"20");
|
|
redisUtil.set(RedisKeyUtil.modelUpload+model.getModelId(),"20");
|
|
|
|
|
|
- File mntFile = null;
|
|
|
|
-
|
|
|
|
String glbOssPath = String.format(FilePath.GLB_OSS_PATH,environment, model.getModelId());
|
|
String glbOssPath = String.format(FilePath.GLB_OSS_PATH,environment, model.getModelId());
|
|
|
|
|
|
String name = file1.getName();
|
|
String name = file1.getName();
|