catchAdmin/app/Request.php
2020-01-17 11:30:39 +08:00

27 lines
347 B
PHP

<?php
namespace app;
// 应用请求对象类
use catcher\CatchAuth;
class Request extends \think\Request
{
protected $auth;
/**
* login user
*
* @time 2020年01月09日
* @return mixed
*/
public function user()
{
if (!$this->auth) {
$this->auth = new CatchAuth;
}
return $this->auth->user();
}
}