Commit 69f032be by Calcium-Ion Committed by GitHub

Merge pull request #45 from AI-ASS/patch-1

fix: the Redis problem in the CacheGetUsername function
parents 4d6ddd4d c65b7922
......@@ -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