From c6c0446c4ea547442572ae03d95182ce972a63ad Mon Sep 17 00:00:00 2001 From: wuyanwen Date: Fri, 17 Jan 2020 15:49:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/catch.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/config/catch.php b/config/catch.php index 4a99092..6e4e779 100644 --- a/config/catch.php +++ b/config/catch.php @@ -6,12 +6,16 @@ return [ */ 'domain' => '', - /** - * set error page - */ - 'error' => root_path('catch/index/view/') . 'error.html', - + /** + * 权限不验证 get 请求 + * + */ + 'is_allow_get' => true, + /** + * auth 认证 + * + */ 'auth' => [ // 默认 'default' => [ @@ -34,6 +38,10 @@ return [ ], ], + /** + * 自定义验证规则 + * + */ 'validates' => [ \catcher\validates\Sometimes::class, ],