Kaynağa Gözat

fix: the Redis problem in the CacheGetUsername function

fix: the Redis problem in the CacheGetUsername function
GAI Group 2 yıl önce
ebeveyn
işleme
6aadcf0c78
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      model/cache.go

+ 1 - 1
model/cache.go

@@ -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
 		}