用户中心
This commit is contained in:
parent
6366a02900
commit
abd00e9ec0
|
|
@ -411,7 +411,7 @@ func GetUserByIDFromUserCenter(id int) dao.User {
|
|||
//先从redis获取
|
||||
key := "user_info_" + strconv.Itoa(id)
|
||||
userStr := worker.GetRedis(key)
|
||||
log.Println("user_str:", userStr)
|
||||
//log.Println("user_str:", userStr)
|
||||
if userStr != "" {
|
||||
err := json.Unmarshal([]byte(userStr), &user)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue