mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
修正
This commit is contained in:
@@ -250,7 +250,7 @@ class App
|
|||||||
// 初始化模块
|
// 初始化模块
|
||||||
$config = self::initModule(MODULE_NAME, $config);
|
$config = self::initModule(MODULE_NAME, $config);
|
||||||
} else {
|
} else {
|
||||||
throw new HttpException(404,'module [ ' . MODULE_NAME . ' ] not exists ');
|
throw new HttpException(404, 'module [ ' . MODULE_NAME . ' ] not exists ');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// 单一模块部署
|
// 单一模块部署
|
||||||
@@ -293,7 +293,7 @@ class App
|
|||||||
$data = $method->invokeArgs($instance, [$action, '']);
|
$data = $method->invokeArgs($instance, [$action, '']);
|
||||||
APP_DEBUG && Log::record('[ RUN ] ' . $method->getFileName(), 'info');
|
APP_DEBUG && Log::record('[ RUN ] ' . $method->getFileName(), 'info');
|
||||||
} else {
|
} else {
|
||||||
throw new HttpException(404,'method [ ' . (new \ReflectionClass($instance))->getName() . '->' . $action . ' ] not exists ');
|
throw new HttpException(404, 'method [ ' . (new \ReflectionClass($instance))->getName() . '->' . $action . ' ] not exists ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $data;
|
return $data;
|
||||||
|
|||||||
Reference in New Issue
Block a user