mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-08-30 12:45:32 +08:00
改进Route类在多种路由地址下面对URL额外参数的支持 修正 bindtoController方法 App类调整对bindToApi的调用
This commit is contained in:
@@ -95,13 +95,8 @@ class App
|
||||
// 获取应用调度信息
|
||||
$dispatch = self::$dispatch;
|
||||
if (empty($dispatch)) {
|
||||
if (IS_API) {
|
||||
// 直接绑定到控制器类命名空间 URL区分大小写 v1/User/getInfo
|
||||
$dispatch = Route::bindToApi($request->path(), self::$namespace, $config['pathinfo_depr']);
|
||||
} else {
|
||||
// 进行URL路由检测
|
||||
$dispatch = self::routeCheck($request, $config);
|
||||
}
|
||||
// 进行URL路由检测
|
||||
$dispatch = self::routeCheck($request, $config);
|
||||
}
|
||||
// 记录当前调度信息
|
||||
$request->dispatch($dispatch);
|
||||
|
||||
Reference in New Issue
Block a user