| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -158,6 +158,8 @@ namespace Apewer.Web | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        #region common
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        static Type Void = typeof(void); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        // 创建控制器实例
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        static ApiController CreateController(Type type, ApiRequest request, ApiResponse response, ApiOptions options) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -184,7 +186,7 @@ namespace Apewer.Web | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            // 没有返回类型。
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            var returnType = method.ReturnType; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (returnType == null) return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (returnType == null || returnType.Equals(Void)) return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            // 已明确字符串类型。
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (returnType.Equals(typeof(string))) | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |