修改request
This commit is contained in:
parent
f427efd2c8
commit
fb482ded01
@ -9,12 +9,18 @@ class Request extends \think\Request
|
|||||||
{
|
{
|
||||||
protected $auth;
|
protected $auth;
|
||||||
|
|
||||||
public function user()
|
/**
|
||||||
{
|
* login user
|
||||||
if (!$this->auth) {
|
*
|
||||||
$this->auth = new CatchAuth;
|
* @time 2020年01月09日
|
||||||
}
|
* @return mixed
|
||||||
|
*/
|
||||||
return $this->auth->user();
|
public function user()
|
||||||
|
{
|
||||||
|
if (!$this->auth) {
|
||||||
|
$this->auth = new CatchAuth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $this->auth->user();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user