|
@@ -115,12 +115,12 @@ public class ThreadService {
|
|
|
|
|
|
if("las".equals(model.getModelType()) || "ply".equals(model.getModelType()) ){
|
|
|
mntFile = OBJToGLBUtil.lasOrPlyToBin(file1);
|
|
|
- String ossPath = mntFile.getPath().replace("/mnt/","")+"/webcloud";
|
|
|
+ String ossPath = mntFile.getPath().replace("/mnt/","");
|
|
|
redisUtil.set(RedisKeyUtil.modelUpload+model.getModelId(),"65");
|
|
|
ShellUtil.yunUpload(mntFile.getPath(),ossPath);
|
|
|
|
|
|
- model.setModelGlbUrl(JSONArray.toJSONString(Arrays.asList(queryPath + ossPath)));
|
|
|
- if(!uploadToOssUtil.existKey(ossPath+"/cloud.js")){
|
|
|
+ model.setModelGlbUrl(JSONArray.toJSONString(Arrays.asList(queryPath + "/webcloud" +ossPath)));
|
|
|
+ if(!uploadToOssUtil.existKey(ossPath+"/webcloud/cloud.js")){
|
|
|
throw new BusinessException(-1,"缺少cloud.js文件");
|
|
|
}
|
|
|
}
|