改进 gin release mode

This commit is contained in:
Twilight 2024-05-14 15:13:45 +08:00
parent 64b7b2fb06
commit 0e37888c30

View File

@ -46,6 +46,8 @@ func main() {
} }
func InitGin() { func InitGin() {
gin.SetMode(gin.ReleaseMode)
Router = gin.Default() Router = gin.Default()
} }
@ -82,7 +84,7 @@ func Controller() {
} }
func ValidatePassword(pass string) bool { func ValidatePassword(pass string) bool {
return pass == "Bearer "+config.Auth.Pass return pass == config.Auth.Pass
} }
func Process(logStruct LogStruct) error { func Process(logStruct LogStruct) error {