From c884dd6fd7eed568345ec9587e049be80b863676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 22 Dec 2023 21:14:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E4=BF=A1=E6=81=AF=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/console/commands/panel.go | 2 +- scripts/install_panel.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/console/commands/panel.go b/app/console/commands/panel.go index db7d36da..415a725f 100644 --- a/app/console/commands/panel.go +++ b/app/console/commands/panel.go @@ -145,7 +145,7 @@ func (receiver *Panel) Handle(ctx console.Context) error { color.Greenln("密码: " + password) color.Greenln("面板端口: " + port) color.Greenln("面板入口: " + facades.Config().GetString("http.entrance")) - color.Greenln("面板地址: " + protocol + "://" + ip + ":" + port + "/" + facades.Config().GetString("http.entrance")) + color.Greenln("面板地址: " + protocol + "://" + ip + ":" + port + facades.Config().GetString("http.entrance")) case "getPort": port, err := tools.Exec(`cat /www/panel/panel.conf | grep APP_PORT | awk -F '=' '{print $2}' | tr -d '\n'`) diff --git a/scripts/install_panel.sh b/scripts/install_panel.sh index 3719a53d..782b8346 100644 --- a/scripts/install_panel.sh +++ b/scripts/install_panel.sh @@ -243,7 +243,7 @@ Init_Panel() { # 设置面板 entrance=$(cat /dev/urandom | head -n 16 | md5sum | head -c 6) - sed -i "s!APP_ENTRANCE=.*!APP_ENTRANCE=${entrance}!g" panel.conf + sed -i "s!APP_ENTRANCE=.*!APP_ENTRANCE=/${entrance}!g" panel.conf ${setup_Path}/panel/panel --env="panel.conf" artisan key:generate ${setup_Path}/panel/panel --env="panel.conf" artisan jwt:secret ${setup_Path}/panel/panel --env="panel.conf" artisan migrate