Explorar o código

fix user relation

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
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