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, '/');



转载于:https://www.cnblogs.com/fyydcxy/p/9498183.html

你可能感兴趣的:(thinkphp url build 生成localhost.localhost的解决方案)