mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
修正
This commit is contained in:
@@ -128,7 +128,7 @@ class Url
|
|||||||
$domain = $_SERVER['HTTP_HOST'];
|
$domain = $_SERVER['HTTP_HOST'];
|
||||||
if (Config::get('url_domain_deploy')) {
|
if (Config::get('url_domain_deploy')) {
|
||||||
// 开启子域名部署
|
// 开启子域名部署
|
||||||
$domain = 'localhost' == $domain ? 'localhost' : 'www' . strstr($_SERVER['HTTP_HOST'], '.');
|
$domain = $_SERVER['HTTP_HOST'];
|
||||||
foreach (Route::domain() as $key => $rule) {
|
foreach (Route::domain() as $key => $rule) {
|
||||||
$rule = is_array($rule) ? $rule[0] : $rule;
|
$rule = is_array($rule) ? $rule[0] : $rule;
|
||||||
if (false === strpos($key, '*') && 0 === strpos($url, $rule)) {
|
if (false === strpos($key, '*') && 0 === strpos($url, $rule)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user