From c946a247ae06c8a7ec1b30b06670f42feccf3d70 Mon Sep 17 00:00:00 2001 From: v2board Date: Mon, 19 Dec 2022 13:50:37 +0800 Subject: [PATCH] update: install command --- app/Console/Commands/V2boardInstall.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/V2boardInstall.php b/app/Console/Commands/V2boardInstall.php index 05c2f608..ce2f9966 100644 --- a/app/Console/Commands/V2boardInstall.php +++ b/app/Console/Commands/V2boardInstall.php @@ -48,8 +48,8 @@ class V2boardInstall extends Command $this->info(" \ V / / __/| |_) | (_) | (_| | | | (_| | "); $this->info(" \_/ |_____|____/ \___/ \__,_|_| \__,_| "); if (\File::exists(base_path() . '/.env')) { - $defaultSecurePath = hash('crc32b', config('app.key')); - $this->info("访问 http(s)://你的站点/{$defaultSecurePath} 进入管理面板,你可以在用户中心修改你的密码。"); + $securePath = config('v2board.secure_path', config('v2board.frontend_admin_path', hash('crc32b', config('app.key')))); + $this->info("访问 http(s)://你的站点/{$securePath} 进入管理面板,你可以在用户中心修改你的密码。"); abort(500, '如需重新安装请删除目录下.env文件'); }