mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-06 22:33:41 +08: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))
|
username, err = common.RedisGet(fmt.Sprintf("user_name:%d", id))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
username, err = GetUserGroup(id)
|
username, err = GetUsernameById(id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user