From f15a1d605bcafb10404bf02ffde57f19c8b14364 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Thu, 7 Nov 2024 15:55:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E9=BB=98=E8=AE=A4=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proto/conf.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proto/conf.go b/proto/conf.go index 97a207e..77e49a1 100644 --- a/proto/conf.go +++ b/proto/conf.go @@ -90,6 +90,10 @@ func ReadConfig(path string) error { err = decoder.Decode(&Config) if err != nil { fmt.Println("Error decoding config") + } else { + if Config.SERVER_PORT == "" { + Config.SERVER_PORT = "8083" // 默认端口 + } } SigningKey = []byte(Config.TOKEN_SECRET) return err