Selaa lähdekoodia

v3编辑器使用nas Scene.json

lyhzzz 2 vuotta sitten
vanhempi
commit
65946b1930

+ 1 - 2
src/main/java/com/fdkankan/ucenter/service/impl/SceneCommonService.java

@@ -129,6 +129,7 @@ public class SceneCommonService {
         }
         }
 
 
         if(StringUtils.isNotBlank(fileContent)){
         if(StringUtils.isNotBlank(fileContent)){
+            //v3编辑器使用
             String localPath = SceneResourcePath.nasBasePath + targetPath +"/scene.json";
             String localPath = SceneResourcePath.nasBasePath + targetPath +"/scene.json";
             File file = new File(localPath);
             File file = new File(localPath);
             if(!file.getParentFile().exists()){
             if(!file.getParentFile().exists()){
@@ -160,8 +161,6 @@ public class SceneCommonService {
                 }
                 }
             }catch (Exception e){
             }catch (Exception e){
                 log.error("writeFile-error:{}",e);
                 log.error("writeFile-error:{}",e);
-            }finally {
-                FileUtil.del(localPath);
             }
             }
 
 
         }
         }