mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42: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参数
|
||||
* @param string $name 方法
|
||||
* @param mixed $param 参数
|
||||
* @return mixed
|
||||
* 获取当前Request对象实例
|
||||
* @return \think\Request
|
||||
*/
|
||||
function request($name, $param = '')
|
||||
function request()
|
||||
{
|
||||
return Request::instance()->$name($param);
|
||||
return Request::instance();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user