feat: add app version

This commit is contained in:
Simon Ding
2024-07-27 15:05:53 +08:00
parent 0433cc7b0a
commit 741a4024fd
6 changed files with 7 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ func (s *Server) authModdleware(c *gin.Context) {
return
}
auth = strings.TrimPrefix(auth, "Bearer ")
//log.Infof("current token: %v", auth)
//log.Debugf("current token: %v", auth)
token, err := jwt.ParseWithClaims(auth, &jwt.RegisteredClaims{}, func(t *jwt.Token) (interface{}, error) {
return []byte(s.jwtSerect), nil
})