mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正Route类一处错误
This commit is contained in:
@@ -697,7 +697,8 @@ class Route
|
||||
$module = APP_MULTI_MODULE ? array_shift($path) : null;
|
||||
if ($autoSearch) {
|
||||
// 自动搜索控制器
|
||||
$dir = APP_PATH . ($module ? $module . DS : '') . CONTROLLER_LAYER;
|
||||
$dir = APP_PATH . ($module ? $module . DS : '') . CONTROLLER_LAYER;
|
||||
$item = [];
|
||||
foreach ($path as $val) {
|
||||
$item[] = array_shift($path);
|
||||
if (is_file($dir . DS . $val . EXT)) {
|
||||
|
||||
Reference in New Issue
Block a user