mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-03-30 12:10:27 +00:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user