mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-02 21:41:36 +08:00
添加url_pathinfo_rule参数用于设置模块的PATHINFO URL规则
例如: 'url_pathinfo_rule' => 'c/id?a=index',
This commit is contained in:
@@ -15,6 +15,9 @@ class Route {
|
||||
static public function check($regx,$rules) {
|
||||
// 优先检测是否存在PATH_INFO
|
||||
if(empty($regx)) return true;
|
||||
if(!Config::get('url_route')) {
|
||||
return false;
|
||||
}
|
||||
// 路由处理
|
||||
if(!empty($rules)) {
|
||||
// 分隔符替换 确保路由定义使用统一的分隔符
|
||||
|
||||
Reference in New Issue
Block a user