From 7c385bc27ac354fff039b05275fc364fc5b87282 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 14 Mar 2018 15:41:52 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E6=9B=BF=E6=8D=A2=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/template.php b/config/template.php index ebd97e0ed..3c7c0cce8 100644 --- a/config/template.php +++ b/config/template.php @@ -14,7 +14,7 @@ // 模板常量声明 $appRoot = app('request')->root(); -$uriRoot = rtrim(preg_match('/\.php$/', $appRoot) ? dirname($appRoot) : $appRoot, '/'); +$uriRoot = rtrim(preg_match('/\.php$/', $appRoot) ? dirname($appRoot) : $appRoot, '\\/'); return [ // 模板引擎类型 支持 php think 支持扩展