$data
$data : mixed
原始数据
Redirect Response
$session : \think\Session
Session对象
create(mixed $data = '', string $type = 'html', integer $code = 200) : \think\Response
创建Response对象
mixed | $data | 输出数据 |
string | $type | 输出类型 |
integer | $code | 状态码 |
setSession(\think\Session $session) : $this
设置Session对象
\think\Session | $session | Session对象 |
__construct(\think\Cookie $cookie, \think\Request $request, \think\Session $session, $data = '', \think\response\int $code = 302)
\think\Cookie | $cookie | |
\think\Request | $request | |
\think\Session | $session | |
$data | ||
\think\response\int | $code |