From da1850047b9d0a16c02e558f9ba5a36d5e86e10c Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Mon, 17 Jun 2019 20:51:00 +0800 Subject: [PATCH] =?UTF-8?q?win=E5=8F=8D=E6=96=9C=E6=9D=A0=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/core.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/core.php b/public/core.php index 226c2f7ea..23c658c56 100755 --- a/public/core.php +++ b/public/core.php @@ -39,8 +39,8 @@ define('__MY_PUBLIC_URL__', empty($_SERVER['HTTP_HOST']) ? '' : __MY_HTTP__.':/ $request_url = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : ''; define('__MY_VIEW_URL__', substr(__MY_URL__, 0, -1).$request_url); -// 系统根目录 -define('ROOT_PATH', dirname(__FILE__).DS); +// 系统根目录,强制转换win反斜杠 +define('ROOT_PATH', str_replace('\\', DS, dirname(__FILE__)).DS); // 系统根目录 去除public define('ROOT', str_replace('public'.DS, '', ROOT_PATH)); -- GitLab