diff --git a/.example.env b/.example.env index 80d67f4e..e7218c6b 100755 --- a/.example.env +++ b/.example.env @@ -1 +1 @@ -APP_DEBUG = true rootuid = 1 [APP] DEFAULT_TIMEZONE = Asia/Shanghai [DATABASE] TYPE = {type} HOSTNAME = {hostname} DATABASE = {database} USERNAME = {username} PASSWORD = {password} HOSTPORT = {hostport} CHARSET = utf8 PREFIX = {prefix} DEBUG = true [LANG] default_lang = zh-cn [JWT] SECRET={secret} \ No newline at end of file +APP_DEBUG = false VERSION = 4.0.0 rootuid = 1 [APP] DEFAULT_TIMEZONE = Asia/Shanghai [DATABASE] TYPE = {type} HOSTNAME = {hostname} DATABASE = {database} USERNAME = {username} PASSWORD = {password} HOSTPORT = {hostport} CHARSET = utf8 PREFIX = {prefix} DEBUG = true [LANG] default_lang = zh-cn [JWT] SECRET={secret} \ No newline at end of file diff --git a/app/common.php b/app/common.php index bccfea21..52a8633d 100755 --- a/app/common.php +++ b/app/common.php @@ -99,7 +99,7 @@ function get_username($uid = 0) { } function avatar($uid, $size = 'middle') { - return request()->root(true) . '/static/common/images/default_avatar_' . $size . '.jpg'; + return request()->domain() . '/static/common/images/default_avatar_' . $size . '.jpg'; } // 分析枚举类型配置值 格式 a:名称1,b:名称2 diff --git a/public/install.php b/public/install.php index b961e7cd..8347e3fb 100644 --- a/public/install.php +++ b/public/install.php @@ -256,7 +256,7 @@ function showmsg(msg, classname){ - +