| 
						
						
							
								
							
						
						
					 | 
					@ -191,7 +191,8 @@ public class OssController { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						public Result<UploadImgResultDTO> uploadArticleImg(@RequestParam("file") MultipartFile file) { | 
					 | 
					 | 
						public Result<UploadImgResultDTO> uploadArticleImg(@RequestParam("file") MultipartFile file) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							// 校验文件类型
 | 
					 | 
					 | 
							// 校验文件类型
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							if (!MediaType.IMAGE_PNG_VALUE.equals(file.getContentType()) && !MediaType.IMAGE_JPEG_VALUE.equals(file.getContentType())) { | 
					 | 
					 | 
							if (!MediaType.IMAGE_PNG_VALUE.equals(file.getContentType()) && !MediaType.IMAGE_JPEG_VALUE.equals(file.getContentType()) | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
							&& !ModuleConstant.FILE_CONTENT_TYPE_JPG.equals(file.getContentType()) ) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								log.error("uploadArticleImg file type:{} is not support 2 upload",file.getContentType() == null? null:file.getContentType()); | 
					 | 
					 | 
								log.error("uploadArticleImg file type:{} is not support 2 upload",file.getContentType() == null? null:file.getContentType()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								throw new RenException(EpmetErrorCode.OPER_UPLOAD_FILE_TYPE_ERROR.getCode() | 
					 | 
					 | 
								throw new RenException(EpmetErrorCode.OPER_UPLOAD_FILE_TYPE_ERROR.getCode() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										, EpmetErrorCode.OPER_UPLOAD_FILE_TYPE_ERROR.getMsg()); | 
					 | 
					 | 
										, EpmetErrorCode.OPER_UPLOAD_FILE_TYPE_ERROR.getMsg()); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |