diff --git a/library/think/View.php b/library/think/View.php index 8413b7b4..185c9fab 100644 --- a/library/think/View.php +++ b/library/think/View.php @@ -201,7 +201,7 @@ class View private function parseTemplate($template) { if (is_file($template)) { - return $template; + return realpath($template); } $depr = $this->config['view_depr']; $template = str_replace(['/', ':'], $depr, $template);