mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-15 07:20:26 +00:00
fix: update error message to make it more clear (#13)
This commit is contained in:
@@ -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