|
@@ -94,10 +94,8 @@ public class SceneController extends BaseController{
|
|
|
String sceneObjPath =null;
|
|
|
|
|
|
if(type == 2 || type == 5){ //点云
|
|
|
- sceneObjPath = String.format(FilePath.LASER_OSS_PATH, num,num)+"/cloud.js" ;
|
|
|
+ sceneObjPath = String.format(FilePath.LASER_OSS_PATH, num,num) ;
|
|
|
fileInfo = minIoUploadService.getFileStatusInfo(sceneObjPath);
|
|
|
- String scenePath = String.format(FilePath.LASER_OSS_PATH, num,num);
|
|
|
- size = minIoUploadService.getSize(scenePath);
|
|
|
}else {
|
|
|
sceneObjPath = String.format(FilePath.OBJ_OSS_PATH,num) + "/images/3dtiles/tileset.json";
|
|
|
if(!uploadToOssUtil.existKey(sceneObjPath)){
|
|
@@ -113,7 +111,7 @@ public class SceneController extends BaseController{
|
|
|
if(fileInfo == null){
|
|
|
throw new BusinessException(ResultCode.FILE_NOT_EXIST);
|
|
|
}
|
|
|
- fileInfo.setSize(size);
|
|
|
+ fileInfo.setSize(size == null? fileInfo.getSize() : size);
|
|
|
String objPath = String.format(FilePath.OBJ_LOCAL_PATH,environment , num) ;
|
|
|
File file = new File(objPath +"/"+num + "_hash.txt");
|
|
|
res.setContentType("application/octet-stream");
|