From 336afdbd058f19e570e5ecd43b00a0956939fd21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E5=B0=8F=E6=98=8E?= <2966980@qq.com> Date: Tue, 21 May 2024 18:48:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=8F=AA=E6=9C=89?= =?UTF-8?q?=E8=B6=85=E7=BA=A7=E7=AE=A1=E7=90=86=E5=91=98=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E4=BF=AE=E6=94=B9=E8=87=AA=E5=B7=B1=E8=B5=84?= =?UTF-8?q?=E6=96=99BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改自己的资料,无需鉴权。 --- catch/permissions/route.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/catch/permissions/route.php b/catch/permissions/route.php index a8bfc2e3..d8da5956 100644 --- a/catch/permissions/route.php +++ b/catch/permissions/route.php @@ -19,7 +19,8 @@ $router->resource('users', '\catchAdmin\permissions\controller\User'); // 切换状态 $router->put('users/switch/status/', '\catchAdmin\permissions\controller\User@switchStatus'); - $router->put('user/profile', '\catchAdmin\permissions\controller\User@profile'); $router->get('user/info', '\catchAdmin\permissions\controller\User@info'); $router->get('user/export', '\catchAdmin\permissions\controller\User@export'); -})->middleware('auth'); \ No newline at end of file +})->middleware('auth'); + +$router->put('user/profile', '\catchAdmin\permissions\controller\User@profile');// 修改自己的资料,无需鉴权