소스 검색

fix user relation

abiao 5 년 전
부모
커밋
e5266903dc
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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