81041
2019-01-11 fa00382db413a8489d07983b66f0869305b51a9a
gx_tieta/src/com/fgkj/actions/MyFileAction.java
@@ -183,7 +183,7 @@
      boolean isSuccess = false;
      String loadpath = ActionUtil.getSession().getServletContext().getRealPath("/");
      String str = new File(loadpath).getParentFile().getAbsolutePath();                                       //获取服务器所在的绝对路径
      String root = str+"/"+fileRoot+"/"+binf.getStationId()+"/video/";                                       // 上传路径
      String root = str+"/"+fileRoot+"/"+binf.getStationId()+"/"+binf.getVideoOrImage()+"/";                                       // 上传路径
      for(int i=0;i<file.length && binf != null;i++){
         String filePath = root+fileFileName[i];
         createFilefolderIFNotExist(filePath);
@@ -211,13 +211,13 @@
      ServiceModel model = new ServiceModel();
      String loadpath = ActionUtil.getSession().getServletContext().getRealPath("/");
      String str = new File(loadpath).getParentFile().getAbsolutePath();   
      if(binf != null && binf.getStationId() != null && binf.getStationName() != null){
         String filesource = str+File.separator+fileRoot+File.separator+binf.getStationId()+File.separator+binf.getStationName()+File.separator;            //当前请求的机房所在的资源文件夹
         System.out.println(filesource);
      if(binf != null && binf.getStationId() != null && binf.getVideoOrImage() != null){
         String filesource = str+File.separator+fileRoot+File.separator+binf.getStationId()+File.separator+binf.getVideoOrImage()+File.separator;            //当前请求的机房所在的资源文件夹
         //System.out.println(filesource);
         File source = new File(filesource);
         File[] files = source.listFiles();
         model.setMsg("暂无视频文件");
         if(files.length>0){
         if(files!=null && files.length>0){
            List myfiles = new ArrayList<MyFile>();
            for(int i=0;i<files.length;i++){
               MyFile myfile = new MyFile();