From e9b4765a493d81bff56dd66656cd3c03b0af490e Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Thu, 3 Mar 2022 15:48:36 +0800 Subject: [PATCH] * Determines whether to process indexes when upgrading. --- module/upgrade/model.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/upgrade/model.php b/module/upgrade/model.php index 1d3f909710..3899aec5fd 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -3023,13 +3023,13 @@ class upgradeModel extends model 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 and $this->config->systemMode == 'new') { - if(strpos($fromVersion, 'pro') !== false and version_compare($fromVersion, 'pro10.0', '<')) + if(strpos($fromVersion, 'pro') !== false) { - $needProcess['search'] = true; + if(version_compare($fromVersion, 'pro10.0', '<')) $needProcess['search'] = true; } - elseif(strpos($fromVersion, 'biz') !== false and version_compare($fromVersion, 'biz5.0', '<')) + elseif(strpos($fromVersion, 'biz') !== false) { - $needProcess['search'] = true; + if(version_compare($fromVersion, 'biz5.0', '<')) $needProcess['search'] = true; } elseif(version_compare($fromVersion, '15.0.rc1', '<')) {