diff --git a/library/think/Request.php b/library/think/Request.php index e1d64af9..c3f26da7 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -131,6 +131,7 @@ class Request public function __call($method, $args) { if (array_key_exists($method, self::$hook)) { + array_unshift($args, $this); call_user_func_array(self::$hook[$method], $args); } else { throw new Exception('method not exists:' . __CLASS__ . '->' . $method);