From 5934a2ba007c833cb0e99ac9cbb0d655b61dc9e2 Mon Sep 17 00:00:00 2001 From: SliverHorn <503551462@qq.com> Date: Mon, 22 Nov 2021 20:53:09 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E4=BF=AE=E5=A4=8Djwt=E7=9A=84signing-?= =?UTF-8?q?key=20=E6=9C=AA=E8=BD=AC=E6=88=90string=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E4=B9=B1=E7=A0=81=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/service/system/sys_initdb_mysql.go | 2 +- server/service/system/sys_initdb_pgsql.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/service/system/sys_initdb_mysql.go b/server/service/system/sys_initdb_mysql.go index b55eb859..37cd21f0 100644 --- a/server/service/system/sys_initdb_mysql.go +++ b/server/service/system/sys_initdb_mysql.go @@ -24,7 +24,7 @@ func (initDBService *InitDBService) writeMysqlConfig(mysql config.Mysql) error { for k, v := range cs { global.GVA_VP.Set(k, v) } - global.GVA_VP.Set("jwt.signing-key", uuid.NewV4()) + global.GVA_VP.Set("jwt.signing-key", uuid.NewV4().String()) return global.GVA_VP.WriteConfig() } diff --git a/server/service/system/sys_initdb_pgsql.go b/server/service/system/sys_initdb_pgsql.go index 605f362e..845182b7 100644 --- a/server/service/system/sys_initdb_pgsql.go +++ b/server/service/system/sys_initdb_pgsql.go @@ -23,7 +23,7 @@ func (initDBService *InitDBService) writePgsqlConfig(pgsql config.Pgsql) error { for k, v := range cs { global.GVA_VP.Set(k, v) } - global.GVA_VP.Set("jwt.signing-key", uuid.NewV4()) + global.GVA_VP.Set("jwt.signing-key", uuid.NewV4().String()) return global.GVA_VP.WriteConfig() }