From a650394be8fb053862a08dee49b0ae5255f8d90d Mon Sep 17 00:00:00 2001 From: WispX <1591788658@qq.com> Date: Sat, 19 Jan 2019 23:35:10 +0800 Subject: [PATCH] fix --- application/index/controller/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/index/controller/Base.php b/application/index/controller/Base.php index e2a8968f..a986a172 100644 --- a/application/index/controller/Base.php +++ b/application/index/controller/Base.php @@ -58,7 +58,7 @@ class Base extends Controller } // 检测数据库结构更新 - if ($this->user && $this->user->is_admin && !\config('app.app_debug')) { + if ($this->user && $this->user->is_admin) { if (file_exists(Env::get('root_path') . 'update.sql')) { $this->redirect(url('/install/update')); }