mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-18 16:36:37 +08:00
Merge pull request #45 from AI-ASS/patch-1
fix: the Redis problem in the CacheGetUsername function
This commit is contained in:
commit
2ccd6c04e0
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user