From 83ebe763d286116cb5233c51bf90567b0ee73362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sun, 29 Oct 2023 16:07:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=82=E9=85=8D=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/http/controllers/plugins/mysql57/mysql57_controller.go | 2 +- app/http/controllers/plugins/mysql80/mysql80_controller.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/http/controllers/plugins/mysql57/mysql57_controller.go b/app/http/controllers/plugins/mysql57/mysql57_controller.go index 6a7340b9f8..8087b89a4e 100644 --- a/app/http/controllers/plugins/mysql57/mysql57_controller.go +++ b/app/http/controllers/plugins/mysql57/mysql57_controller.go @@ -311,7 +311,7 @@ func (c *Mysql57Controller) SetRootPassword(ctx http.Context) http.Response { return controllers.Error(ctx, http.StatusInternalServerError, "MySQL 未运行") } - rootPassword := ctx.Request().Input(models.SettingKeyMysqlRootPassword) + rootPassword := ctx.Request().Input("password") if len(rootPassword) == 0 { return controllers.Error(ctx, http.StatusUnprocessableEntity, "MySQL root密码不能为空") } diff --git a/app/http/controllers/plugins/mysql80/mysql80_controller.go b/app/http/controllers/plugins/mysql80/mysql80_controller.go index b3d82a8316..7c4975e288 100644 --- a/app/http/controllers/plugins/mysql80/mysql80_controller.go +++ b/app/http/controllers/plugins/mysql80/mysql80_controller.go @@ -311,7 +311,7 @@ func (c *Mysql80Controller) SetRootPassword(ctx http.Context) http.Response { return controllers.Error(ctx, http.StatusInternalServerError, "MySQL 未运行") } - rootPassword := ctx.Request().Input(models.SettingKeyMysqlRootPassword) + rootPassword := ctx.Request().Input("password") if len(rootPassword) == 0 { return controllers.Error(ctx, http.StatusUnprocessableEntity, "MySQL root密码不能为空") }