catchAdmin/app/Request.php
2020-01-08 22:43:40 +08:00

21 lines
288 B
PHP

<?php
namespace app;
// 应用请求对象类
use catcher\CatchAuth;
class Request extends \think\Request
{
protected $auth;
public function user()
{
if (!$this->auth) {
$this->auth = new CatchAuth;
}
return $this->auth->user();
}
}