Skip to content

Commit

Permalink
修正路由分组合并解析
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jul 9, 2023
1 parent 06cb92c commit 10ab895
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/think/route/RuleGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 10ab895

Please sign in to comment.