* Fix install and upgrade locate error.

This commit is contained in:
Lufei
2022-11-01 19:22:40 +08:00
parent ca778ca1d5
commit 3970bc226d
+1 -1
View File
@@ -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')