|
@@ -387,11 +387,15 @@ public class SceneUpgradeToV4Service implements ISceneUpgradeToV4Service {
|
|
|
|
|
|
scenePlusExt.setThumb(thumbUrl);
|
|
scenePlusExt.setThumb(thumbUrl);
|
|
scenePlusExt.setWebSite(webSite);
|
|
scenePlusExt.setWebSite(webSite);
|
|
- String upXMLUrl = "https://4dkk.4dage.com/" + String.format(UploadFilePath.DATA_VIEW_PATH, num) + "Up.xml";
|
|
|
|
if(StrUtil.isNotEmpty(scenePlusExt.getVideos())){
|
|
if(StrUtil.isNotEmpty(scenePlusExt.getVideos())){
|
|
JSONObject videosJson = JSON.parseObject(scenePlusExt.getVideos());
|
|
JSONObject videosJson = JSON.parseObject(scenePlusExt.getVideos());
|
|
String upPath = videosJson.getString("upPath");
|
|
String upPath = videosJson.getString("upPath");
|
|
if(StrUtil.isNotEmpty(upPath)){
|
|
if(StrUtil.isNotEmpty(upPath)){
|
|
|
|
+ String fileName = "Up.txt";
|
|
|
|
+ if(!fYunFileService.fileExist(dataViewPath + fileName)){
|
|
|
|
+ fileName = "Up.xml";
|
|
|
|
+ }
|
|
|
|
+ String upXMLUrl = "https://4dkk.4dage.com/" + dataViewPath + fileName;
|
|
videosJson.replace("upPath", upXMLUrl);
|
|
videosJson.replace("upPath", upXMLUrl);
|
|
scenePlusExt.setVideos(videosJson.toJSONString());
|
|
scenePlusExt.setVideos(videosJson.toJSONString());
|
|
}
|
|
}
|