From f8f20ab955920ddd09e515dbc2bba6733956c639 Mon Sep 17 00:00:00 2001 From: yanwenwu Date: Fri, 24 Jan 2020 08:39:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/catch.php | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/config/catch.php b/config/catch.php index 6e4e779..cdbb224 100644 --- a/config/catch.php +++ b/config/catch.php @@ -6,16 +6,26 @@ return [ */ 'domain' => '', - /** - * 权限不验证 get 请求 - * - */ - 'is_allow_get' => true, - - /** - * auth 认证 - * - */ + /** + * 权限配置 + * + */ + 'permissions' => [ + /** + * get 请求不验证 + */ + 'is_allow_get' => true, + + /** + * 超级管理员 ID + * + */ + 'super_admin_id' => 1, + ], + /** + * auth 认证 + * + */ 'auth' => [ // 默认 'default' => [