细节优化

This commit is contained in:
devil_gong 2019-04-28 14:10:40 +08:00
parent 57e48ecbec
commit 0b724c0ffe

View File

@ -293,6 +293,7 @@ class Behavior
$http = empty($_SERVER['HTTPS']) ? 'http' : 'https';
// 根目录
$root = '';
if(!empty($_SERVER['SCRIPT_NAME']))
{
$root = substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')+1);