|
@@ -158,6 +158,23 @@ public class BuildLiguangServiceImpl implements IBuildSceneService {
|
|
|
//下载资源到本地
|
|
|
this.downLoadSource(message, message.getPath());
|
|
|
|
|
|
+ //读取data.fdage,获取场景名称
|
|
|
+ String dataFdageStr = FileUtil.readUtf8String(message.getPath() + "/capture/data.fdage");
|
|
|
+ JSONObject dataFdage = JSON.parseObject(dataFdageStr);
|
|
|
+ if(Objects.nonNull(dataFdage)){
|
|
|
+ String title = dataFdage.getString("name");
|
|
|
+ if(StrUtil.isNotEmpty(title)){
|
|
|
+ ScenePlus scenePlus = scenePlusService.getScenePlusByNum(num);
|
|
|
+ scenePlus.setTitle(title);
|
|
|
+ scenePlusService.updateById(scenePlus);
|
|
|
+
|
|
|
+ SceneEditInfo sceneEditInfo = sceneEditInfoService.getByScenePlusId(scenePlus.getId());
|
|
|
+ sceneEditInfo.setTitle(title);
|
|
|
+ sceneEditInfoService.updateById(sceneEditInfo);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
message.getBuildContext().put("cameraType",message.getCameraType());
|
|
|
|
|
|
message.setBizType("standard");
|
|
@@ -183,10 +200,8 @@ public class BuildLiguangServiceImpl implements IBuildSceneService {
|
|
|
|
|
|
@Override
|
|
|
public void downLoadSource(BuildSceneCallMessage buildSceneMqMessage,String path){
|
|
|
- String ossZipPath = (String) buildSceneMqMessage.getExt().get("ossZipPath");
|
|
|
- fYunFileService.downloadFileByCommand(path + File.separator + "capture", ossZipPath);
|
|
|
- String zipName = FileUtil.getName(ossZipPath);
|
|
|
- ZipUtil.unzip(path + "/" + zipName, path + File.separator + "capture");
|
|
|
+ String ossPath = (String) buildSceneMqMessage.getExt().get("ossPath");
|
|
|
+ fYunFileService.downloadFileByCommand(path + File.separator + "capture", ossPath);
|
|
|
}
|
|
|
|
|
|
@Override
|