|
@@ -135,12 +135,12 @@ public class CommonUploadServiceImpl extends ServiceImpl<ICommonUploadMapper, Co
|
|
String resultFormat = modelFileFormat;
|
|
String resultFormat = modelFileFormat;
|
|
switch (modelFileFormat){
|
|
switch (modelFileFormat){
|
|
case "obj" : resultFormat = "obj";
|
|
case "obj" : resultFormat = "obj";
|
|
- url = uploadObjOss(ossZipPath,modelFile);break;
|
|
|
|
- case "laz" : url = uploadLazOss(ossZipPath,modelFile); break;
|
|
|
|
- case "shp" : url = uploadOss(ossZipPath,modelFile); break;
|
|
|
|
- case "b3dm" : url = uploadB3dm(ossZipPath,modelFile); break;
|
|
|
|
|
|
+ url = uploadObjOss(unzipPath,modelFile);break;
|
|
|
|
+ case "laz" : url = uploadLazOss(unzipPath,modelFile); break;
|
|
|
|
+ case "shp" : url = uploadOss(unzipPath,modelFile); break;
|
|
|
|
+ case "b3dm" : url = uploadB3dm(unzipPath,modelFile); break;
|
|
case "las" :
|
|
case "las" :
|
|
- case "ply" : url = uploadLasOrPly(ossZipPath,modelFile);break;
|
|
|
|
|
|
+ case "ply" : url = uploadLasOrPly(unzipPath,modelFile);break;
|
|
case "osgb":
|
|
case "osgb":
|
|
resultFormat = "b3dm";
|
|
resultFormat = "b3dm";
|
|
break;
|
|
break;
|
|
@@ -170,7 +170,7 @@ public class CommonUploadServiceImpl extends ServiceImpl<ICommonUploadMapper, Co
|
|
// }
|
|
// }
|
|
String ossKey = unzipPath.replace(OssPath.localPath,"");
|
|
String ossKey = unzipPath.replace(OssPath.localPath,"");
|
|
ShellUtil.yunUpload(unzipPath,ossKey);
|
|
ShellUtil.yunUpload(unzipPath,ossKey);
|
|
- return fusionConfig.getOssUrlPrefix() + ossKey +File.separator+modelFile.getName();
|
|
|
|
|
|
+ return ossKey +File.separator+modelFile.getName();
|
|
}
|
|
}
|
|
|
|
|
|
private String uploadB3dm(String unzipPath, File modelFile) {
|
|
private String uploadB3dm(String unzipPath, File modelFile) {
|