* Adjust the code.

This commit is contained in:
hufangzhou
2021-05-06 16:03:37 +08:00
parent b864f06de7
commit 78f08ca700
+2 -2
View File
@@ -2790,7 +2790,7 @@ class upgradeModel extends model
$fromVersion = $this->config->installedVersion;
$needProcess = array();
if(strpos($fromVersion, 'max') === false and strpos($fromVersion, 'biz') === false and (strpos($fromVersion, 'pro') === false ? version_compare($fromVersion, '8.3', '<') : version_compare($fromVersion, 'pro5.4', '<'))) $needProcess['updateFile'] = true;
if(strpos($fromVersion, 'max') === false)
if(strpos($fromVersion, 'max') === false and $this->config->systemMode == 'new')
{
if(strpos($fromVersion, 'pro') !== false and version_compare($fromVersion, 'pro10.0', '<'))
{
@@ -2800,7 +2800,7 @@ class upgradeModel extends model
{
$needProcess['search'] = true;
}
elseif(version_compare($fromVersion, '15.0', '<'))
elseif(version_compare($fromVersion, '15.0.rc1', '<'))
{
$needProcess['search'] = true;
}