Commit c65b7922 by GAI Group Committed by GitHub

fix: the Redis problem in the CacheGetUsername function

fix: the Redis problem in the CacheGetUsername function
parent 4d6ddd4d
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment