mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进template类parseTemplateFile方法支持跨模块调用模板
route类method路由参数支持使用 GET|POST 选择多种请求
This commit is contained in:
@@ -249,7 +249,7 @@ class Route
|
||||
$option = $val['option'];
|
||||
$pattern = $val['pattern'];
|
||||
// 请求类型检测
|
||||
if (isset($option['method']) && REQUEST_METHOD != strtoupper($option['method'])) {
|
||||
if (isset($option['method']) && false === stripos($option['method'], REQUEST_METHOD)) {
|
||||
continue;
|
||||
}
|
||||
// 伪静态后缀检测
|
||||
@@ -289,7 +289,7 @@ class Route
|
||||
if (is_array($route)) {
|
||||
$option1 = $route[1];
|
||||
// 请求类型检测
|
||||
if (isset($option1['method']) && REQUEST_METHOD != strtoupper($option1['method'])) {
|
||||
if (isset($option1['method']) && false === stripos($option1['method'], REQUEST_METHOD)) {
|
||||
continue;
|
||||
}
|
||||
// 伪静态后缀检测
|
||||
|
||||
Reference in New Issue
Block a user