23 lines
774 B
PHP
23 lines
774 B
PHP
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
|
|
// +----------------------------------------------------------------------
|
|
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
|
// +----------------------------------------------------------------------
|
|
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/';
|
|
}
|
|
} |