From 3970bc226d127a249d0a9bbd32ea17277f24c765 Mon Sep 17 00:00:00 2001 From: Lufei Date: Tue, 1 Nov 2022 19:22:40 +0800 Subject: [PATCH] * Fix install and upgrade locate error. --- framework/base/control.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/control.class.php b/framework/base/control.class.php index e53d024345..723ceb016c 100644 --- a/framework/base/control.class.php +++ b/framework/base/control.class.php @@ -212,7 +212,7 @@ class baseControl * 检查用户是否登录,如果没有登录,跳转到登录页面。 * Check the user has logon or not, if not, goto the login page. */ - if($this->config->installed && empty($this->app->user) && !$this->loadModel('common')->isOpenMethod($this->moduleName, $this->methodName)) + if($this->config->installed && !in_array($this->moduleName, array('install', 'upgrade')) && empty($this->app->user) && !$this->loadModel('common')->isOpenMethod($this->moduleName, $this->methodName)) { $uri = $this->app->getURI(true); if($this->moduleName == 'message' and $this->methodName == 'ajaxgetmessage')