Explorar el Código

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

fix: the Redis problem in the CacheGetUsername function
Calcium-Ion hace 2 años
padre
commit
2ccd6c04e0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 		}