Explorar el Código

fix user relation

abiao hace 5 años
padre
commit
e5266903dc
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      go/gopath/src/fohow.com/apps/models/user_model/wx_user.go

+ 2 - 2
go/gopath/src/fohow.com/apps/models/user_model/wx_user.go

@@ -175,8 +175,8 @@ func GetByOpenid(openid string, useCache bool) *WxUser {
 }
 
 func GetWxUserById(id int64, useCache bool) *WxUser {
-	k := fmt.Sprintf("GetWxUserById(%d)", id)
-
+	//k := cache.GetKey(cache.GetWxUserById, id)
+	k := fmt.Sprintf("user_model.GetWxUserById(%d)", id)
 	if useCache {
 		if usr, ok := cache.Cache.Get(k).(*WxUser); ok {
 			return usr