chore: update log
This commit is contained in:
parent
9815dd09ed
commit
243e70f982
@ -39,7 +39,7 @@ func ValidateUserToken(key string) (token *Token, err error) {
|
||||
}
|
||||
token, err = CacheGetTokenByKey(key)
|
||||
if err != nil {
|
||||
common.SysError("failed to get token: " + err.Error())
|
||||
common.SysError("CacheGetTokenByKey failed: " + err.Error())
|
||||
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||
return nil, errors.New("无效的令牌")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user