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

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
}