mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
改进Model类的getData和getAttr方法 不存在的属性抛出异常
修正Route类闭包的路由参数获取
This commit is contained in:
@@ -1004,6 +1004,8 @@ class Route
|
||||
}
|
||||
}
|
||||
if ($route instanceof \Closure) {
|
||||
// 解析路由参数
|
||||
Request::instance()->param(array_merge($match, $_GET));
|
||||
// 执行闭包
|
||||
return ['type' => 'function', 'function' => $route, 'params' => $match];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user