mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
Request类dispatch方法改进
This commit is contained in:
@@ -1301,12 +1301,10 @@ class Request
|
|||||||
* @param array $params 参数
|
* @param array $params 参数
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function dispatch($dispatch = null, $type = null, $params = [])
|
public function dispatch($dispatch = null, $type = 'module', $params = [])
|
||||||
{
|
{
|
||||||
if (!is_null($dispatch)) {
|
if (!is_null($dispatch)) {
|
||||||
$this->dispatch = is_array($dispatch) ?
|
$this->dispatch = ['type' => $type, $type => $dispatch, 'params' => $param];
|
||||||
$dispatch :
|
|
||||||
['type' => $type, $type => $dispatch, 'params' => $param];
|
|
||||||
}
|
}
|
||||||
return $this->dispatch;
|
return $this->dispatch;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user