mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
再次优化代码
This commit is contained in:
@@ -182,7 +182,7 @@ class Route
|
||||
// 配置域名根 com.cn net.cn 之类的域名需要配置
|
||||
$domain = explode('.', rtrim(stristr($_SERVER['HTTP_HOST'], $rootDomain, true), '.'));
|
||||
} else {
|
||||
$domain = array_slice(explode('.', $_SERVER['HTTP_HOST']), 0, -2);
|
||||
$domain = explode('.', $_SERVER['HTTP_HOST'], -2);
|
||||
}
|
||||
// 子域名配置
|
||||
if (!empty($domain)) {
|
||||
|
||||
Reference in New Issue
Block a user