From 10ab8957377af0644e6c5bf0e72e5875916dbab3 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 9 Jul 2023 15:09:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=B7=AF=E7=94=B1=E5=88=86?= =?UTF-8?q?=E7=BB=84=E5=90=88=E5=B9=B6=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/think/route/RuleGroup.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/think/route/RuleGroup.php b/src/think/route/RuleGroup.php index c36b5faffd..b678d3266e 100644 --- a/src/think/route/RuleGroup.php +++ b/src/think/route/RuleGroup.php @@ -263,8 +263,7 @@ protected function checkMergeRuleRegex(Request $request, array &$rules, string $ $regex = []; $items = []; - foreach ($rules as $key => $val) { - $item = $val[1]; + foreach ($rules as $key => $item) { if ($item instanceof RuleItem) { $rule = $depr . str_replace('/', $depr, $item->getRule()); if ($depr == $rule && $depr != $url) {