mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-08-30 12:45:32 +08:00
改进response类
This commit is contained in:
10
helper.php
10
helper.php
@@ -371,12 +371,10 @@ function request()
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置Response输出
|
||||
* @param string $name 方法
|
||||
* @param mixed $param 参数
|
||||
* @return mixed
|
||||
* 获取当前的Response对象实例
|
||||
* @return \think\Response
|
||||
*/
|
||||
function response($name, $param = '')
|
||||
function response()
|
||||
{
|
||||
return Response::$name($param);
|
||||
return Response::instance();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user