智慧保安后台管理-验收版本
zengh
2021-12-03 7d304cdc65aa3cdf75276d7a19e1805992b854cd
src/main/java/org/springblade/modules/resource/endpoint/OssEndpoint.java
@@ -320,7 +320,7 @@
      List<MultipartFile> fileList = new ArrayList<>();
      //获取图片文件
      fileList = fileUtil.getSubFiles(desPath+File.separator+namePath,fileList);
      fileList = fileUtil.getSubFiles(desPath,fileList);
      for (MultipartFile multipartFile : fileList){
         if(multipartFile.getName().toLowerCase().endsWith(".png") || multipartFile.getName().toLowerCase().endsWith(".jpg")) {
            String newName = "upload/picture/" + UUID.randomUUID().toString().replaceAll("-", "") + multipartFile.getName().substring(multipartFile.getName().lastIndexOf("."));