* Fix call api error.

This commit is contained in:
鲁飞
2022-11-04 02:51:20 +00:00
committed by 朱金勇
parent f36d8a321d
commit 95d10ea6d3
4 changed files with 11 additions and 6 deletions
+2 -2
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 && !in_array($this->moduleName, array('install', 'upgrade')) && empty($this->app->user) && !$this->loadModel('common')->isOpenMethod($this->moduleName, $this->methodName))
if($this->config->installed && !in_array($this->moduleName, $this->config->openModules) && 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')
@@ -230,7 +230,7 @@ class baseControl
/**
* 如果客户端是手机的话,视图文件增加m.前缀。
* If the clent is mobile, add m. as prefix for view file.
* If the client is mobile, add m. as prefix for view file.
*/
$this->setClientDevice();
$this->setDevicePrefix();