>[warning] 使用前必须引入**UserTrait**片段
use db\traits\sys\UserTrait;
#### getAuthorInfo()-获取当前登录用户信息
>[info] getAuthorInfo($type='SESSION',$value=''){}
### 参数
* type:类型,支持SESSION和TOKEN,默认SESSION
* value:type参数值为token时必须提供的token值
>[success]返回值 array/false
### error
```php
return false;
```
### success
```php
array(
'userid' => '1',
'username' => 'admin',
'nickname' =>'管理员',
'avatar' =>'',
.....
)
```
>[success]示例代码
```php
use UserTrait;
//读取用户信息
$sysUserInfo =$this->getAuthorInfo();
```
- 空白目录
- 简介
- 前端
- 组件
- 文件上传
- 用户选择
- 组织机构选择
- 角色岗位选择
- 岗位选择
- 用户组选择
- 高拍仪上传
- 公共类库
- 组织机构
- bindToOrg
- bindusertoremote
- getAncestors
- getAllChildIds
- getByOrgId
- getByThirdAppPkId
- getChilds
- getChildsCount
- getMasterOrg
- getOrgUserById
- getOrgUser
- getOrgRoleData
- getOrgRoleQuota
- getOrgRoleUserCount
- getParents
- getPosteritys
- getTreeArray
- getUserOrgs
- getUserOrgCount
- getUserOrgRoleInfo
- hasChild
- hasMasterOrg
- hasBind
- isOrgUser
- updateOrg
- 用户管理
- getAuthorInfo
- getByDuty
- getByGroup
- getByMobile
- getByOrg
- getByUserId
- getByUserName
- getByRole
- getByToken
- getByThirdUserId
- getUserOrgs
- getUserRoles
- getUserList
- 统一待办
- createTodo
- createHandle
- createRead
- removeTodo
- getTodoList
- setReaded