|
|
@@ -31,6 +31,7 @@ import com.fdkankan.model.utils.CreateObjUtil;
|
|
|
import com.fdkankan.model.utils.FloorPlanUserUtil;
|
|
|
import com.fdkankan.model.utils.SceneUtil;
|
|
|
import com.fdkankan.rabbitmq.bean.BuildSceneCallMessage;
|
|
|
+import com.fdkankan.rabbitmq.bean.BuildSceneResultMqMessage;
|
|
|
import com.fdkankan.rabbitmq.util.RabbitMqProducer;
|
|
|
import com.fdkankan.redis.constant.RedisKey;
|
|
|
import com.fdkankan.redis.util.RedisUtil;
|
|
|
@@ -697,6 +698,12 @@ public class CommonServiceImpl implements ICommonService {
|
|
|
|
|
|
@Override
|
|
|
public Map<String, String> getUploadFiles(ScenePlus scenePlus,String path,Integer cameraType,JSONObject fdageData) throws Exception {
|
|
|
+ return this.getUploadFiles(scenePlus,path,cameraType,fdageData,null);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Map<String, String> getUploadFiles(ScenePlus scenePlus,String path,Integer cameraType,JSONObject fdageData, BuildSceneResultMqMessage brMsg) throws Exception {
|
|
|
if (ObjectUtils.isEmpty(scenePlus)) {
|
|
|
throw new Exception("未找到场景信息:" + path);
|
|
|
}
|
|
|
@@ -764,6 +771,11 @@ public class CommonServiceImpl implements ICommonService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ String splitType = null;
|
|
|
+ if(brMsg != null){
|
|
|
+ splitType = (String) brMsg.getExt().get("splitType");
|
|
|
+ }
|
|
|
+
|
|
|
//exportMeshObj这个是字段由app写入的
|
|
|
boolean genModel = true;//是否生成模型 默认生成,深时场景要根据 exportMeshObj判断是否生成
|
|
|
if(!ObjectUtils.isEmpty(cameraType)
|
|
|
@@ -777,6 +789,10 @@ public class CommonServiceImpl implements ICommonService {
|
|
|
|| !sdTilesSceneSourceList.contains(scenePlus.getSceneSource())){
|
|
|
gen3dTiles = false;
|
|
|
}
|
|
|
+ //算法部又偷偷改了东西了,SPLIT_V3以前是生成obj模型的,现在生成了3dtiles
|
|
|
+ if(splitType != null && splitType.equals("SPLIT_V3")){
|
|
|
+ gen3dTiles = true;
|
|
|
+ }
|
|
|
|
|
|
if(genModel){
|
|
|
if (!gen3dTiles) {
|