From 3370f9e40685d9b495e7f8d8c4de3918abef0f7e Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Sat, 29 Dec 2018 21:42:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=BD=E4=BB=A4=E8=A1=8C=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/app.php | 4 ++-- config/shopxo.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/app.php b/config/app.php index 03a856ac1..1c8309a6a 100755 --- a/config/app.php +++ b/config/app.php @@ -19,9 +19,9 @@ return [ // 应用地址 'app_host' => '', // 应用调试模式 - 'app_debug' => APP_DEBUG, + 'app_debug' => defined('APP_DEBUG') ? APP_DEBUG : false, // 应用Trace - 'app_trace' => APP_TRACE, + 'app_trace' => defined('APP_TRACE') ? APP_TRACE : false, // 是否支持多模块 'app_multi_module' => true, // 入口自动绑定模块 diff --git a/config/shopxo.php b/config/shopxo.php index 27931f941..3f8b16365 100644 --- a/config/shopxo.php +++ b/config/shopxo.php @@ -28,7 +28,7 @@ return [ 'cache_common_home_nav_footer_key' => 'cache_common_home_nav_footer_data', // 图片host, 数据库图片地址以/Public/...开头 - 'images_host' => substr(__MY_PUBLIC_URL__, 0, -1), + 'images_host' => defined('__MY_PUBLIC_URL__') ? substr(__MY_PUBLIC_URL__, 0, -1) : '', // 开启U带域名 'url_domain_deploy' => true, -- GitLab