更新
This commit is contained in:
@@ -1,8 +1,19 @@
|
||||
<?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;
|
||||
|
||||
// 应用请求对象类
|
||||
class Request extends \think\Request
|
||||
{
|
||||
use app\services\auth\UsersService;
|
||||
|
||||
// 应用请求对象类
|
||||
class Request extends \think\Request{
|
||||
|
||||
public function auth(){
|
||||
return app()->make(UsersService::class)->getUserAuth($this->user['uid']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user