|  |  | @ -35,6 +35,7 @@ public class uploadController { | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Value("${minio_url}") |  |  |  |     @Value("${minio_url}") | 
			
		
	
		
		
			
				
					
					|  |  |  |     private String minioUrl; |  |  |  |     private String minioUrl; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     /** |  |  |  |     /** | 
			
		
	
		
		
			
				
					
					|  |  |  |      * 上传PDF模板 |  |  |  |      * 上传PDF模板 | 
			
		
	
		
		
			
				
					
					|  |  |  |      */ |  |  |  |      */ | 
			
		
	
	
		
		
			
				
					|  |  | @ -125,8 +126,9 @@ public class uploadController { | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(ResultEnum.DATA_ERROR, "上传文件只能是 jpg,png,doc,pdf 格式"); |  |  |  |             return ResultVOUtils.error(ResultEnum.DATA_ERROR, "上传文件只能是 jpg,png,doc,pdf 格式"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         String newName = UUID.randomUUID() + fileType;//生成新文件名
 |  |  |  |         String newName = UUID.randomUUID() + fileType;//生成新文件名
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         String savePath = filePath + "/register/" + type; |  |  |  |         String savePath = filePath + "/register/file/" + type; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         String savePath1 = fileLpath + "?type=" + type; |  |  |  |         String savePath1 = fileLpath + "?type=" + type; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         String fileFullName = savePath + "/" + newName; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         File file1 = new File(savePath); |  |  |  |         File file1 = new File(savePath); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (!file1.exists()) {// 判断目录是否存在
 |  |  |  |         if (!file1.exists()) {// 判断目录是否存在
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -141,7 +143,7 @@ public class uploadController { | 
			
		
	
		
		
			
				
					
					|  |  |  |             rMap.put("name", fileUrl + savePath1 + "&name=" + newName); |  |  |  |             rMap.put("name", fileUrl + savePath1 + "&name=" + newName); | 
			
		
	
		
		
			
				
					
					|  |  |  |             rMap.put("type", type); |  |  |  |             rMap.put("type", type); | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.success(rMap); |  |  |  |             return ResultVOUtils.success(rMap); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } catch (IOException e) { |  |  |  |         } catch (Exception e) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             e.printStackTrace(); |  |  |  |             e.printStackTrace(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         return ResultVOUtils.error(ResultEnum.DATA_ERROR, "上传失败"); |  |  |  |         return ResultVOUtils.error(ResultEnum.DATA_ERROR, "上传失败"); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |