| 
					
				 | 
			
			
				@@ -131,78 +131,89 @@ class Dever 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return $default; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function config() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    # 定义常用方法,这里不用__callStatic 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function config(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\Config::get(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Config::get(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function apply() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function apply(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\Library::apply(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Library::apply(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function success() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function success(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\Output::success(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Output::success(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function error() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function error(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\Output::error(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Output::error(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function out() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function out(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\Output::out(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Output::out(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function input() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function input(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\Route::input(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Route::input(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function url() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function url(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\Route::url(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Route::url(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function host() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function host(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\Route::host(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Route::host(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function project() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function project(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\Project::load(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Project::load(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function log() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function log(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\Log::add(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Log::add(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function debug() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function debug(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\Debug::add(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Debug::add(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function session() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function session(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\Session::oper(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Session::oper(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function view() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function view(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\View::show(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\View::show(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function file() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function file(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\File::get(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\File::get(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static function data() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return Dever\File::data(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function page() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function page(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\Paginator::get(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Paginator::get(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function rule() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function rule(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return Dever\Helper\Rule::get(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Helper\Rule::get(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function curl() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function number(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Helper\Math::format(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function math(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $key = $args[0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $args = array_slice($args, 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return Dever\Helper\Math::$key(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static function curl(...$args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $curl = new Dever\Helper\Curl(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return $curl->load(...func_get_args()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return $curl->load(...$args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static function cache($key, $value = false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -278,16 +289,6 @@ class Dever 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         array_multisort($reorder, $sort, $array); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return $array; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static function number($number, $num = 2, $type = 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if ($type == 2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            return number_format($number, $num); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if ($type == 3) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            return sprintf("%.".$num."f", $number); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return round($number + 0.000001, $num); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static function uuid() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         mt_srand((double)microtime() * 10000); 
			 |