Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Oct 26, 2024
1 parent f70e0af commit 747446d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/think/route/dispatch/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ public function init(App $app)
$alias = $app->config->get('middleware.alias', []);

if (isset($alias[$layer])) {
$middleware = $alias[$layer];
$this->app->middleware->add($middleware, 'route');
$this->app->middleware->add($layer, 'route');
}
}

Expand Down

0 comments on commit 747446d

Please sign in to comment.