From 1d5add1c04b886ccfcebf97c56d33b23600316dc Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Sat, 28 Oct 2023 17:26:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0API=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/OaApprove.php | 1 + 1 file changed, 1 insertion(+) 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'];