|  |  | @ -16,6 +16,7 @@ import com.epmet.commons.tools.constant.Constant; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.exception.RenException; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.page.PageData; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.utils.Result; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.constants.PrivacyType; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dao.OssDao; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.result.UploadImgResultDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.entity.OssEntity; | 
			
		
	
	
		
			
				
					|  |  | @ -114,7 +115,7 @@ public class OssServiceImpl extends BaseServiceImpl<OssDao, OssEntity> implement | 
			
		
	
		
			
				
					|  |  |  | 		String extension = FilenameUtils.getExtension(file.getOriginalFilename()); | 
			
		
	
		
			
				
					|  |  |  | 		String url = null; | 
			
		
	
		
			
				
					|  |  |  | 		try { | 
			
		
	
		
			
				
					|  |  |  | 			url = OssFactory.build().uploadSuffix(file.getBytes(), extension); | 
			
		
	
		
			
				
					|  |  |  | 			url = OssFactory.build().uploadSuffix(file.getBytes(), extension, PrivacyType.INTERNAL); | 
			
		
	
		
			
				
					|  |  |  | 		} catch (IOException e) { | 
			
		
	
		
			
				
					|  |  |  | 			e.printStackTrace(); | 
			
		
	
		
			
				
					|  |  |  | 			logger.error("文件上传异常"); | 
			
		
	
	
		
			
				
					|  |  | @ -145,7 +146,7 @@ public class OssServiceImpl extends BaseServiceImpl<OssDao, OssEntity> implement | 
			
		
	
		
			
				
					|  |  |  | 		String extension = FilenameUtils.getExtension(file.getOriginalFilename()); | 
			
		
	
		
			
				
					|  |  |  | 		String url = null; | 
			
		
	
		
			
				
					|  |  |  | 		try { | 
			
		
	
		
			
				
					|  |  |  | 			url = OssFactory.build().uploadSuffix(file.getBytes(), extension); | 
			
		
	
		
			
				
					|  |  |  | 			url = OssFactory.build().uploadSuffix(file.getBytes(), extension, null); | 
			
		
	
		
			
				
					|  |  |  | 		} catch (IOException e) { | 
			
		
	
		
			
				
					|  |  |  | 			e.printStackTrace(); | 
			
		
	
		
			
				
					|  |  |  | 			logger.error("语音上传异常"); | 
			
		
	
	
		
			
				
					|  |  | 
 |