This commit is contained in:
thinkphp
2016-06-24 17:45:27 +08:00
parent 2839d9b31d
commit c4ef774882

View File

@@ -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;
}