fix: 修复自动路由为null时错误
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user