diff --git a/app/Console/Commands/UpgradeCommand.php b/app/Console/Commands/UpgradeCommand.php index b28643b14b..12ed4c7747 100644 --- a/app/Console/Commands/UpgradeCommand.php +++ b/app/Console/Commands/UpgradeCommand.php @@ -39,8 +39,8 @@ public function handle() $this->line($this->getUrl()); } - if (version_compare(PHP_VERSION, '7.4.0') < 0) { - $this->error('无法执行自动升级。所需的最低 PHP 版本是 7.4.0,而你所用的是 [' . PHP_VERSION . '].'); + if (version_compare(PHP_VERSION, '8.0.0') < 0) { + $this->error('无法执行自动升级。所需的最低 PHP 版本是 8.0.0,而你所用的是 [' . PHP_VERSION . '].'); } $user = 'www-data'; diff --git a/app/Console/Commands/User/MakeUserCommand.php b/app/Console/Commands/User/MakeUserCommand.php index fb6f37a113..169002c37b 100644 --- a/app/Console/Commands/User/MakeUserCommand.php +++ b/app/Console/Commands/User/MakeUserCommand.php @@ -7,7 +7,7 @@ class MakeUserCommand extends Command { - protected $description = 'Creates a user on the system via the CLI.'; + protected $description = '通过 CLI 在系统上创建用户。'; protected $signature = 'p:user:make {--email=} {--username=} {--name-first=} {--name-last=} {--password=} {--admin=} {--no-password}'; @@ -40,7 +40,7 @@ public function handle() } $user = $this->creationService->handle(compact('email', 'username', 'name_first', 'name_last', 'password', 'root_admin')); - $this->table(['Field', 'Value'], [ + $this->table(['字段', '值'], [ ['UUID', $user->uuid], ['Email', $user->email], ['用户名', $user->username], diff --git a/app/Console/RequiresDatabaseMigrations.php b/app/Console/RequiresDatabaseMigrations.php index 2e5ebe6b23..775fc3dc38 100644 --- a/app/Console/RequiresDatabaseMigrations.php +++ b/app/Console/RequiresDatabaseMigrations.php @@ -38,18 +38,17 @@ protected function showMigrationWarning(): void $this->getOutput()->writeln(' | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | | | -| Your database has not been properly migrated! | +| 您的数据库未正确迁移! | | | | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | -You must run the following command to finish migrating your database: +您必须运行以下命令才能完成数据库迁移: php artisan migrate --step --force -You will not be able to use Pterodactyl Panel as expected without fixing your -database state by running the command above. +如果您不运行上述命令进行修复数据库你将无法正常使用 Pterodactyl 面板。 '); - $this->getOutput()->error('You must correct the error above before continuing.'); + $this->getOutput()->error('在继续之前,您必须更正上述错误。'); } }