From c16a8cc7b858c1610b039ea3c33781de42321050 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Sat, 28 Oct 2023 15:10:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=8E=B7=E5=8F=96=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E6=9E=B6=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/UserDepartment.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/api/controller/UserDepartment.php b/app/api/controller/UserDepartment.php index 4d20efe..108a0a0 100644 --- a/app/api/controller/UserDepartment.php +++ b/app/api/controller/UserDepartment.php @@ -18,6 +18,11 @@ use think\facade\Db; class UserDepartment extends ApiController { + + protected $middleware = [ + Auth::class => ['except' => []] + ]; + public function index() { $cate = Db::name('Department')