|
@@ -296,7 +296,12 @@ public class SceneDownloadHandlerServiceImpl {
|
|
|
evidences.stream().forEach(v->{
|
|
evidences.stream().forEach(v->{
|
|
|
JSONObject evidence = (JSONObject) v;
|
|
JSONObject evidence = (JSONObject) v;
|
|
|
//处理bgm
|
|
//处理bgm
|
|
|
- JSONObject bgm = evidence.getJSONObject("bgm");
|
|
|
|
|
|
|
+ JSONObject bgm = null;
|
|
|
|
|
+ try {
|
|
|
|
|
+ bgm = evidence.getJSONObject("bgm");
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ log.warn("bgm对象转换jsonObject异常, bgm内容为:{}", evidence.getStr("bgm"));
|
|
|
|
|
+ }
|
|
|
if(CollUtil.isNotEmpty(bgm)){
|
|
if(CollUtil.isNotEmpty(bgm)){
|
|
|
this.replaceEvidence(bgm, localUserPath);
|
|
this.replaceEvidence(bgm, localUserPath);
|
|
|
}
|
|
}
|
|
@@ -308,6 +313,14 @@ public class SceneDownloadHandlerServiceImpl {
|
|
|
this.replaceEvidence(mediaObj, localUserPath);
|
|
this.replaceEvidence(mediaObj, localUserPath);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ //处理icon
|
|
|
|
|
+ String icon = evidence.getStr("icon");
|
|
|
|
|
+ if(icon.startsWith("/oss/manage")){//如果是直接引用媒体库的路径,则需要复制一份到本地离线包目录,并修改src为本地user目录
|
|
|
|
|
+ String fileName = FileUtil.getName(icon);
|
|
|
|
|
+ String localPath = localUserPath + fileName;
|
|
|
|
|
+ fYunFileService.downloadFile(icon.replace("/oss/", ""), localPath);
|
|
|
|
|
+ evidence.replace("icon", fileName);
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
//访问密码置0
|
|
//访问密码置0
|