Commit 5e20246e by JustSong

fix: update error message to make it more clear (#13)

parent fb608980
......@@ -65,7 +65,7 @@ func ValidateUserToken(key string) (token *Token, err error) {
}()
return token, nil
}
return nil, err
return nil, errors.New("无效的 token")
}
func GetTokenByIds(id int, userId int) (*Token, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment