修改request

This commit is contained in:
wuyanwen 2020-01-17 11:30:39 +08:00
parent f427efd2c8
commit fb482ded01

View File

@ -9,12 +9,18 @@ class Request extends \think\Request
{
protected $auth;
public function user()
{
if (!$this->auth) {
$this->auth = new CatchAuth;
}
return $this->auth->user();
/**
* login user
*
* @time 2020年01月09日
* @return mixed
*/
public function user()
{
if (!$this->auth) {
$this->auth = new CatchAuth;
}
return $this->auth->user();
}
}