From 296a72331e5294410d336dcf3d22689ed34944a3 Mon Sep 17 00:00:00 2001 From: xboard Date: Thu, 16 Jan 2025 14:12:14 +0800 Subject: [PATCH] update XboardInstall.php --- app/Console/Commands/XboardInstall.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/XboardInstall.php b/app/Console/Commands/XboardInstall.php index b29aae3..6d9016c 100644 --- a/app/Console/Commands/XboardInstall.php +++ b/app/Console/Commands/XboardInstall.php @@ -145,7 +145,6 @@ class XboardInstall extends Command } } $envConfig['APP_KEY'] = 'base64:' . base64_encode(Encrypter::generateKey('AES-256-CBC')); - $envConfig['INSTALLED'] = true; $isReidsValid = false; while (!$isReidsValid) { // 判断是否为Docker环境 @@ -212,6 +211,8 @@ class XboardInstall extends Command $defaultSecurePath = hash('crc32b', config('app.key')); $this->info("访问 http(s)://你的站点/{$defaultSecurePath} 进入管理面板,你可以在用户中心修改你的密码。"); + $envConfig['INSTALLED'] = true; + $this->saveToEnv($envConfig); } catch (\Exception $e) { $this->error($e); }