mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
修正request函数和start入口
This commit is contained in:
10
helper.php
10
helper.php
@@ -362,14 +362,12 @@ function route($rule = '', $route = [], $type = '*', $option = [], $pattern = []
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取Request参数
|
* 获取当前Request对象实例
|
||||||
* @param string $name 方法
|
* @return \think\Request
|
||||||
* @param mixed $param 参数
|
|
||||||
* @return mixed
|
|
||||||
*/
|
*/
|
||||||
function request($name, $param = '')
|
function request()
|
||||||
{
|
{
|
||||||
return Request::instance()->$name($param);
|
return Request::instance();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user