细节优化

feat/task1-c-wallet
devil_gong 2019-04-28 14:10:40 +08:00
parent 57e48ecbec
commit 0b724c0ffe
1 changed files with 1 additions and 0 deletions

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);