mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进App类的route方法
This commit is contained in:
@@ -403,7 +403,7 @@ class App
|
|||||||
Route::import($config['route']);
|
Route::import($config['route']);
|
||||||
}
|
}
|
||||||
// 路由检测(根据路由定义返回不同的URL调度)
|
// 路由检测(根据路由定义返回不同的URL调度)
|
||||||
$result = Route::check($request, $path, $depr, !IS_CLI ? $config['url_domain_deploy'] : false);
|
$result = Route::check($request, $path, $depr, $config['url_domain_deploy']);
|
||||||
if (APP_ROUTE_MUST && false === $result && $config['url_route_must']) {
|
if (APP_ROUTE_MUST && false === $result && $config['url_route_must']) {
|
||||||
// 路由无效
|
// 路由无效
|
||||||
throw new HttpException(404, 'Route Not Found');
|
throw new HttpException(404, 'Route Not Found');
|
||||||
|
|||||||
Reference in New Issue
Block a user