thinkphp url build 生成localhost.localhost的解决方案

找到框架核心Url.php的下面一段代码

// 原代码
// URL组装
$url = $domain . rtrim($this->root ?: $this->app['request']->root(), '/') . '/' . ltrim($url, '/');

// 修改后的代码

// URL组装
$url = rtrim($this->root ?: $this->app['request']->root(), '/') . '/' . ltrim($url, '/');



猜你喜欢

转载自www.cnblogs.com/fyydcxy/p/9498183.html