abiao лет назад: 5
Родитель
Сommit
7532380c70
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      go/gopath/src/fohow.com/apps/models/user_model/wx_user.go

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

@@ -175,7 +175,8 @@ func GetByOpenid(openid string, useCache bool) *WxUser {
 }
 
 func GetWxUserById(id int64, useCache bool) *WxUser {
-	k := cache.GetKey(cache.GetWxUserById, 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