From 2a29d565492598ff45773d131c6b3e36e4f1cd19 Mon Sep 17 00:00:00 2001 From: snowlyg <569616226@qq.com> Date: Fri, 17 Jun 2022 10:58:06 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20operation=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/operation/config.go | 6 +++--- server/operation/index.go | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/server/operation/config.go b/server/operation/config.go index 48cc8939..f575758c 100644 --- a/server/operation/config.go +++ b/server/operation/config.go @@ -111,10 +111,10 @@ func getViperConfig() viper_server.ViperConfig { Default: []byte(` { "except":{ - uri: "` + CONFIG.Except.Uri + `", - method: "` + CONFIG.Except.Method + `" + "uri": "` + CONFIG.Except.Uri + `", + "method": "` + CONFIG.Except.Method + `" }, -"include": + "include": { "uri": "` + CONFIG.Include.Uri + `", "method": "` + CONFIG.Include.Method + `" diff --git a/server/operation/index.go b/server/operation/index.go index 37562111..4afe9cab 100644 --- a/server/operation/index.go +++ b/server/operation/index.go @@ -10,7 +10,8 @@ import ( ) func init() { - viper_server.Init(getViperConfig()) + err := viper_server.Init(getViperConfig()) + panic(err) } // CreateOplog