|
@@ -142,11 +142,11 @@ public class SceneCommonService {
|
|
if(fileName.contains("scene.json")){
|
|
if(fileName.contains("scene.json")){
|
|
JSONObject jsonObject = JSONObject.parseObject(newJson);
|
|
JSONObject jsonObject = JSONObject.parseObject(newJson);
|
|
jsonObject.put("sceneName",newSceneName);
|
|
jsonObject.put("sceneName",newSceneName);
|
|
- com.fdkankan.ucenter.util.FileUtil.writeFile(localPath,jsonObject.toJSONString());
|
|
|
|
|
|
+ FileUtils.writeFile(localPath ,jsonObject.toJSONString());
|
|
String sceneJsonPath = String.format(SceneResourcePath.dataPath+"/"+fileName, newNum);
|
|
String sceneJsonPath = String.format(SceneResourcePath.dataPath+"/"+fileName, newNum);
|
|
fYunFileServiceInterface.uploadFile(localPath, sceneJsonPath);
|
|
fYunFileServiceInterface.uploadFile(localPath, sceneJsonPath);
|
|
}else {
|
|
}else {
|
|
- com.fdkankan.ucenter.util.FileUtil.writeFile(localPath,newJson);
|
|
|
|
|
|
+ FileUtils.writeFile(localPath ,newJson);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -154,7 +154,7 @@ public class SceneCommonService {
|
|
JSONObject jsonObject = JSONObject.parseObject(newJson);
|
|
JSONObject jsonObject = JSONObject.parseObject(newJson);
|
|
jsonObject.put("title",newSceneName);
|
|
jsonObject.put("title",newSceneName);
|
|
jsonObject.put("dynamicPanel",0);
|
|
jsonObject.put("dynamicPanel",0);
|
|
- com.fdkankan.ucenter.util.FileUtil.writeFile(localPath,jsonObject.toJSONString());
|
|
|
|
|
|
+ FileUtils.writeFile(localPath, jsonObject.toJSONString());
|
|
|
|
|
|
String sceneJsonPath = String.format(SceneResourcePath.DATA_VIEW_PATH+"/" + fileName, newNum);
|
|
String sceneJsonPath = String.format(SceneResourcePath.DATA_VIEW_PATH+"/" + fileName, newNum);
|
|
fYunFileServiceInterface.uploadFile(localPath, sceneJsonPath);
|
|
fYunFileServiceInterface.uploadFile(localPath, sceneJsonPath);
|
|
@@ -204,7 +204,7 @@ public class SceneCommonService {
|
|
if(StringUtils.isNotBlank(fileContent)){
|
|
if(StringUtils.isNotBlank(fileContent)){
|
|
String newJson = fileContent.replaceAll(oldNum,newNum);
|
|
String newJson = fileContent.replaceAll(oldNum,newNum);
|
|
try {
|
|
try {
|
|
- com.fdkankan.ucenter.util.FileUtil.writeFile(localPath,newJson);
|
|
|
|
|
|
+ FileUtils.writeFile(localPath, newJson);
|
|
fYunFileServiceInterface.uploadFile(localPath,ossStatusJsonPath);
|
|
fYunFileServiceInterface.uploadFile(localPath,ossStatusJsonPath);
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
log.error("writeFile-error:{}",e);
|
|
log.error("writeFile-error:{}",e);
|