更新API权限构建

This commit is contained in:
yaooo 2023-10-28 17:26:02 +08:00
parent d75b5a6eb4
commit 1d5add1c04
1 changed files with 1 additions and 0 deletions

View File

@ -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'];