服务默认端口
This commit is contained in:
parent
b83195da91
commit
f15a1d605b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue