Merge pull request #45 from AI-ASS/patch-1

fix: the Redis problem in the CacheGetUsername function
This commit is contained in:
Calcium-Ion 2024-01-12 13:17:20 +08:00 committed by GitHub
commit 2ccd6c04e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ func CacheGetUsername(id int) (username string, err error) {
}
username, err = common.RedisGet(fmt.Sprintf("user_name:%d", id))
if err != nil {
username, err = GetUserGroup(id)
username, err = GetUsernameById(id)
if err != nil {
return "", err
}