更新API权限构建
This commit is contained in:
parent
d75b5a6eb4
commit
1d5add1c04
|
@ -25,6 +25,7 @@ class OaApprove extends ApiController
|
|||
|
||||
public function index()
|
||||
{
|
||||
$this->checkAuth();
|
||||
$uid = JWT_UID;
|
||||
$userInfo = Db::name('Admin')->where(['id' => $uid])->field(['id', 'username', 'name', 'email', 'mobile', 'sex', 'nickname', 'thumb', 'did', 'position_id', 'desc', 'entry_time'])->find();
|
||||
$department = $userInfo['did'];
|
||||
|
|
Loading…
Reference in New Issue