| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -80,7 +80,7 @@ async function editUser (ctx) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      ctx.status = 400; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      ctx.body = { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					         message: typeof error == 'string' ? error : undefined | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					   } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -96,7 +96,7 @@ async function putUser (ctx) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					         } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      if (existUserRes && existUserRes.role.includes('admin') && !disabled) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      if (existUserRes && existUserRes.role.includes('admin') && disabled == false) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					         throw '成员不能既是管理员又是普通成员' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |