|
@@ -3348,34 +3348,34 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
map.put(imagesBuffer.toString() + "/vision.modeldata", "images/images"+param.getNum()+"/vision.modeldata");
|
|
map.put(imagesBuffer.toString() + "/vision.modeldata", "images/images"+param.getNum()+"/vision.modeldata");
|
|
|
|
|
|
fYunFileService.uploadMulFiles(map);
|
|
fYunFileService.uploadMulFiles(map);
|
|
-//
|
|
|
|
-// ScenePro proEntity = this.findBySceneNum(param.getNum());
|
|
|
|
-// if(proEntity == null){
|
|
|
|
-// proEntity = new ScenePro();
|
|
|
|
-// proEntity.setSceneName("四维看看");
|
|
|
|
-// proEntity.setSceneDec("<p>四维看看 让空间讲故事</p>");
|
|
|
|
-// proEntity.setSceneScheme(2);
|
|
|
|
-// proEntity.setNum(param.getNum());
|
|
|
|
-// proEntity.setUserId(param.getUserId());
|
|
|
|
-// proEntity.setWebSite(mainUrl + "/" + sceneProNewUrl + param.getNum());
|
|
|
|
-// proEntity.setStatus(1);
|
|
|
|
-// proEntity.setPayStatus(1);
|
|
|
|
-// proEntity.setBuildType("V3");
|
|
|
|
-//
|
|
|
|
-// if(param.getSceneSource()!=null){
|
|
|
|
-// proEntity.setSceneSource(Integer.parseInt(param.getSceneSource()));
|
|
|
|
-// }
|
|
|
|
-//
|
|
|
|
-// this.save(proEntity);
|
|
|
|
-//
|
|
|
|
-// SceneProEdit proEditEntity = new SceneProEdit();
|
|
|
|
-// proEditEntity.setProId(proEntity.getId());
|
|
|
|
-// sceneProEditService.save(proEditEntity);
|
|
|
|
-//
|
|
|
|
-// JSONObject scenejson = JSONObject.parseObject(JSONObject.toJSONString(proEntity));
|
|
|
|
-// scenejson.put("visions", 1);
|
|
|
|
-// FileUtils.writeFile(dataBuffer.toString() + File.separator+"scene.json", scenejson.toString());
|
|
|
|
-// }
|
|
|
|
|
|
+
|
|
|
|
+ ScenePro proEntity = this.findBySceneNum(param.getNum());
|
|
|
|
+ if(proEntity == null){
|
|
|
|
+ proEntity = new ScenePro();
|
|
|
|
+ proEntity.setSceneName("四维看看");
|
|
|
|
+ proEntity.setSceneDec("<p>四维看看 让空间讲故事</p>");
|
|
|
|
+ proEntity.setSceneScheme(2);
|
|
|
|
+ proEntity.setNum(param.getNum());
|
|
|
|
+ proEntity.setUserId(param.getUserId());
|
|
|
|
+ proEntity.setWebSite(mainUrl + "/" + sceneProNewUrl + param.getNum());
|
|
|
|
+ proEntity.setStatus(1);
|
|
|
|
+ proEntity.setPayStatus(1);
|
|
|
|
+ proEntity.setBuildType("V3");
|
|
|
|
+
|
|
|
|
+ if(param.getSceneSource()!=null){
|
|
|
|
+ proEntity.setSceneSource(Integer.parseInt(param.getSceneSource()));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this.save(proEntity);
|
|
|
|
+
|
|
|
|
+ SceneProEdit proEditEntity = new SceneProEdit();
|
|
|
|
+ proEditEntity.setProId(proEntity.getId());
|
|
|
|
+ sceneProEditService.save(proEditEntity);
|
|
|
|
+
|
|
|
|
+ JSONObject scenejson = JSONObject.parseObject(JSONObject.toJSONString(proEntity));
|
|
|
|
+ scenejson.put("visions", 1);
|
|
|
|
+ FileUtils.writeFile(dataBuffer.toString() + File.separator+"scene.json", scenejson.toString());
|
|
|
|
+ }
|
|
|
|
|
|
return Result.success(mainUrl + "/" + sceneProNewUrl + param.getNum());
|
|
return Result.success(mainUrl + "/" + sceneProNewUrl + param.getNum());
|
|
|
|
|