Ver código fonte

fix user relation

abiao 5 anos atrás
pai
commit
dccc162297

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

@@ -117,7 +117,8 @@ func GetAvailableThreeIntroArea(wxUserId int64) string {
 }
 
 func GetThreeWxUserById(id int64, useCache bool) *ThreeWxUser {
-	k := cache.GetKey(cache.GetThreeWxUserById, id)
+	//k := cache.GetKey(cache.GetThreeWxUserById, id)
+	k := fmt.Sprintf("user_model.GetThreeWxUserById(%d)", id)
 	if useCache {
 		if usr, ok := cache.Cache.Get(k).(*ThreeWxUser); ok {
 			return usr