From 35407bd4a34284d5bf76cdec2e0abf52222b46a7 Mon Sep 17 00:00:00 2001 From: Ying Date: Mon, 3 Jul 2023 20:41:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E4=B8=BAnull=E6=97=B6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/route.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/route.php b/config/route.php index 0e6401e..5d32592 100644 --- a/config/route.php +++ b/config/route.php @@ -74,7 +74,9 @@ foreach ($pluginList as $item) { if (!$item['status']) { continue; } - foreach ($item['rewrite'] as $route => $value) { + + $routeList = $item['rewrite'] ?? []; + foreach ($routeList as $route => $value) { $separator = explode('/', $value); $method = end($separator); array_pop($separator);