|
@@ -72,7 +72,7 @@ public class CaseNumServiceImpl extends ServiceImpl<ICaseNumMapper, CaseNumEntit
|
|
|
private String getGlbUrl(Integer type, String num) {
|
|
|
if(type == 0 || type == 1){ //看看,看见
|
|
|
String objPath = String.format(OBJ_PATH ,num);
|
|
|
- String glbPath = String.format(GLB_PATH,num);
|
|
|
+ String glbPath = String.format(GLB_PATH,num) +"/mesh.glb";
|
|
|
String glbOssPath = String.format(FilePath.GLB_OSS_PATH , num);
|
|
|
List<String> fileList = uploadToOssUtil.listKeysFromAli(String.format(FilePath.OBJ_OSS_PATH, num));
|
|
|
for (String fileName : fileList) {
|
|
@@ -84,7 +84,7 @@ public class CaseNumServiceImpl extends ServiceImpl<ICaseNumMapper, CaseNumEntit
|
|
|
uploadToOssUtil.downFormAli(fileName,objPath +"/"+split[split.length-1]);
|
|
|
}
|
|
|
|
|
|
- OBJToGLBUtil.objToGlb(objPath,glbPath);
|
|
|
+ OBJToGLBUtil.objToGlb(objPath,glbPath );
|
|
|
uploadToOssUtil.upload(glbPath,glbOssPath);
|
|
|
return queryPath + "/"+glbOssPath;
|
|
|
}
|