diff --git a/app/api/controller/OaApprove.php b/app/api/controller/OaApprove.php index a37262a..153a4dd 100644 --- a/app/api/controller/OaApprove.php +++ b/app/api/controller/OaApprove.php @@ -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'];