|
|
@@ -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 := fmt.Sprintf("GetWxUserById(%d)", id)
|
|
|
+
|
|
|
if useCache {
|
|
|
if usr, ok := cache.Cache.Get(k).(*WxUser); ok {
|
|
|
return usr
|