diff --git a/library/think/Request.php b/library/think/Request.php index 8cedb777..5dc13ebd 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -440,7 +440,7 @@ class Request */ public static function dispatch($dispatch = []) { - if (!empty($type)) { + if (!empty($dispatch)) { self::$dispatch = $dispatch; } return self::$dispatch;