提交 0b724c0f 编写于 作者: D devil_gong

细节优化

上级 57e48ecb
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册