mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
Route重定向规则支持更多 schema
This commit is contained in:
@@ -1414,7 +1414,7 @@ class Route
|
||||
if ($route instanceof \Closure) {
|
||||
// 执行闭包
|
||||
$result = ['type' => 'function', 'function' => $route];
|
||||
} elseif (0 === strpos($route, '/') || 0 === strpos($route, 'http')) {
|
||||
} elseif (0 === strpos($route, '/') || strpos($route, '://')) {
|
||||
// 路由到重定向地址
|
||||
$result = ['type' => 'redirect', 'url' => $route, 'status' => isset($option['status']) ? $option['status'] : 301];
|
||||
} elseif (false !== strpos($route, '\\')) {
|
||||
|
||||
Reference in New Issue
Block a user