fix: update error message to make it more clear (#13)
This commit is contained in:
1 parent
fb608980fa
commit
5e20246e65
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user