From a4afc49bb1fadee66f6c18a2764d332b879ac116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B8=E7=A6=8F=E7=9A=84=E5=B0=8F=E7=8C=AA?= <1378841192@qq.com> Date: Tue, 19 Apr 2022 17:33:16 +0800 Subject: [PATCH] Update jwt.php --- publish/jwt.php | 1 + 1 file changed, 1 insertion(+) diff --git a/publish/jwt.php b/publish/jwt.php index 19a015f..4a8cb0e 100644 --- a/publish/jwt.php +++ b/publish/jwt.php @@ -14,6 +14,7 @@ * 如果数组中存在["**", "/**"],则默认所有的请求路由都不做jwt token的校验,直接放行,如果no_check_route为一个空数组,则 * 所有的请求路由都需要做jwt token校验 * 路由路径支持正则的写法 + * 正则写法:["**", "/api/{name:.+}"] 支持模块化不做jwt token的校验,例如:/api/login/login */ 'no_check_route' => [ ["**", "/**"],