change new install category sort

This commit is contained in:
xiaomlove
2025-05-18 16:28:40 +07:00
parent 702d37c12f
commit 273fa3e1b8
4 changed files with 29 additions and 27 deletions

View File

@@ -118,11 +118,13 @@ class NexusUpdate extends Command
return 0;
}
if (!$mysqlInfo['match']) {
$this->doLog("Error: MySQL version: {$mysqlInfo['version']} is too low, please use the newest version of {$mysqlInfo['minVersion']} or above.", 'error');
$minVersion = $mysqlInfo['minVersion'] ?? '5.7.8';
$this->doLog("Error: MySQL version: {$mysqlInfo['version']} is too low, please use the newest version of {$minVersion} or above.", 'error');
return 0;
}
if (!$redisInfo['match']) {
$this->doLog("Error: Redis version: {$mysqlInfo['version']} is too low, please use {$mysqlInfo['minVersion']} or above.", 'error');
$minVersion = $redisInfo['minVersion'] ?? '2.6.12';
$this->doLog("Error: Redis version: {$mysqlInfo['version']} is too low, please use {$minVersion} or above.", 'error');
return 0;
}
if ($includeComposer) {