// +---------------------------------------------------------------------- namespace app; use app\services\auth\UsersService; // 应用请求对象类 class Request extends \think\Request{ public function auth(){ return app()->make(UsersService::class)->getUserAuth($this->user['uid']); } public function static(){ return $this->domain() . '/storage/'; } }