From 08166e204407f3ed15eb3a14256fffdc1f84eadb Mon Sep 17 00:00:00 2001 From: WispX <1591788658@qq.com> Date: Wed, 8 Jan 2020 11:20:12 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/index/controller/Base.php b/application/index/controller/Base.php index 2f51e8cd..4f33d292 100644 --- a/application/index/controller/Base.php +++ b/application/index/controller/Base.php @@ -42,7 +42,7 @@ class Base extends Controller // 检测程序是否已安装 if (!file_exists(Env::get('config_path') . 'db.php')) { - $this->redirect(url('/install')); + if (!\config('app.app_debug')) $this->redirect(url('/install')); } $configs = \app\common\model\Config::all(); @@ -60,7 +60,7 @@ class Base extends Controller // 检测数据库结构更新 if ($user && $user->is_admin) { - if (file_exists(Env::get('root_path') . 'update.sql')) { + if (file_exists(Env::get('root_path') . 'update.sql') && !\config('app.app_debug')) { $this->redirect(url('/install/update')); } }