mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-04 06:12:48 +08:00
默认cli模式下REQUEST_METHOD为GET
恢复route上一版本的改动。
This commit is contained in:
@@ -237,11 +237,11 @@ class Route
|
||||
}
|
||||
|
||||
// 获取当前请求类型的路由规则
|
||||
$rules = isset(self::$rules[REQUEST_METHOD]) ? self::$rules[REQUEST_METHOD] : [];
|
||||
$rules = self::$rules[REQUEST_METHOD];
|
||||
|
||||
if (!empty(self::$rules['*'])) {
|
||||
// 合并任意请求的路由规则
|
||||
$rules = array_merge(self::$rules['*'], (array) $rules);
|
||||
$rules = array_merge(self::$rules['*'], $rules);
|
||||
}
|
||||
// 路由规则检测
|
||||
if (!empty($rules)) {
|
||||
|
||||
Reference in New Issue
Block a user