* Adjust code.

This commit is contained in:
caoyanyi
2022-03-22 13:40:23 +08:00
parent 1d68afd421
commit 515de66bdc

View File

@@ -77,13 +77,14 @@ class messageModel extends model
$requestType = $config->requestType;
if(defined('RUN_MODE') and RUN_MODE == 'api')
{
if(file_exists($this->app->getConfigRoot() . 'my.php'))
$configRoot = $this->app->getConfigRoot();
if(file_exists($configRoot . 'my.php'))
{
include $this->app->getConfigRoot() . 'my.php';
include $configRoot . 'my.php';
}
else
{
include $this->app->getConfigRoot() . 'config.php';
include $configRoot . 'config.php';
}
}