mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
域名部署规则支持闭包函数
This commit is contained in:
@@ -115,6 +115,11 @@ class Route {
|
||||
// 子域名部署规则
|
||||
// '子域名'=>'模块名'
|
||||
// '子域名'=>['模块名','var1=a&var2=b&var3=*'];
|
||||
if($rule instanceof \Closure) {
|
||||
// 执行闭包并中止
|
||||
self::invokeRule($rule);
|
||||
exit;
|
||||
}
|
||||
if(is_array($rule)) {
|
||||
$_GET[Config::get('var_module')] = $rule[0];
|
||||
if(isset($rule[1])) { // 传入参数
|
||||
|
||||
Reference in New Issue
Block a user