|
@@ -145,10 +145,11 @@ public class ReverseE57ServiceImpl implements IReverseE57Service {
|
|
buildSceneResult.setPath(path);
|
|
buildSceneResult.setPath(path);
|
|
|
|
|
|
|
|
|
|
- String splitType = null;
|
|
|
|
- String skyboxType = null;
|
|
|
|
|
|
+ String splitType = "SPLIT_V29";
|
|
|
|
+ String skyboxType = "SKYBOX_V15";
|
|
|
|
+ String otherType = (String)message.getExt().get("otherType");
|
|
|
|
|
|
- ComputerUtil.createProjectAndDataFile(path,num, splitType, skyboxType,null,null);
|
|
|
|
|
|
+ this.createProjectAndDataFile(path,num, splitType, skyboxType,otherType,null,null);
|
|
//计算模型并返回需要上传oss的文件集合
|
|
//计算模型并返回需要上传oss的文件集合
|
|
ComputerUtil.computer(num, path, buildType);
|
|
ComputerUtil.computer(num, path, buildType);
|
|
|
|
|
|
@@ -161,4 +162,26 @@ public class ReverseE57ServiceImpl implements IReverseE57Service {
|
|
log.info("八目上完oss结束修改数据:"+num);
|
|
log.info("八目上完oss结束修改数据:"+num);
|
|
return ModelingBuildStatus.SUCCESS;
|
|
return ModelingBuildStatus.SUCCESS;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public void createProjectAndDataFile(String path, String sceneNum, String splitType, String skyboxType, String otherType, Map<String, Object> projectExtras, Map<String, Object> dataExtras) {
|
|
|
|
+ JSONObject projectJson = new JSONObject();
|
|
|
|
+ if (!org.apache.commons.lang3.ObjectUtils.isEmpty(projectExtras)) {
|
|
|
|
+ projectJson.putAll(projectExtras);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ projectJson.put("sceneNum", sceneNum);
|
|
|
|
+ FileUtils.writeFile(path + File.separator + "project.json", projectJson.toString());
|
|
|
|
+ JSONObject dataJson = new JSONObject();
|
|
|
|
+ if (!org.apache.commons.lang3.ObjectUtils.isEmpty(dataExtras)) {
|
|
|
|
+ dataJson.putAll(dataExtras);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ dataJson.put("split_type", splitType);
|
|
|
|
+ dataJson.put("skybox_type", skyboxType);
|
|
|
|
+ dataJson.put("extras", (Object)null);
|
|
|
|
+ dataJson.put("other_type", otherType);
|
|
|
|
+ FileUtils.writeFile(path + File.separator + "data.json", dataJson.toString());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|