diff --git a/library/think/Request.php b/library/think/Request.php index a88c70c3..493f7ad9 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -1304,7 +1304,7 @@ class Request public function dispatch($dispatch = null, $type = 'module', $params = []) { if (!is_null($dispatch)) { - $this->dispatch = ['type' => $type, $type => $dispatch, 'params' => $param]; + $this->dispatch = ['type' => $type, $type => $dispatch, 'params' => $params]; } return $this->dispatch; }