浏览代码

路径添加斜线

lyhzzz 2 年之前
父节点
当前提交
948e6150c4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/fdkankan/manage/service/impl/SceneProServiceImpl.java

+ 1 - 1
src/main/java/com/fdkankan/manage/service/impl/SceneProServiceImpl.java

@@ -515,7 +515,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
 
             String oldFdagePaht =  dataSource.replace("/mnt/data","home") ;
             String[] split = oldFdagePaht.split("/");
-            String newFdagePath = split[0] + newSnCode + split[2] + newSnCode +"_" + split[3].split("_")[1];
+            String newFdagePath = split[0] +"/"+ newSnCode +"/"+ split[2] +"/"+ newSnCode +"_" + split[3].split("_")[1];
 
             fYunFileServiceInterface.copyFileInBucket(oldFdagePaht,newFdagePath);
             fYunFileServiceInterface.uploadFile(localPathFdage,newFdagePath);