mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
改进路由
This commit is contained in:
@@ -842,7 +842,7 @@ class Route
|
|||||||
}
|
}
|
||||||
$method = strtolower($request->method());
|
$method = strtolower($request->method());
|
||||||
// 获取当前请求类型的路由规则
|
// 获取当前请求类型的路由规则
|
||||||
$rules = self::$rules[$method];
|
$rules = isset(self::$rules[$method]) ? self::$rules[$method] : [];
|
||||||
// 检测域名部署
|
// 检测域名部署
|
||||||
if ($checkDomain) {
|
if ($checkDomain) {
|
||||||
self::checkDomain($request, $rules, $method);
|
self::checkDomain($request, $rules, $method);
|
||||||
|
|||||||
Reference in New Issue
Block a user