diff --git a/service/userService.go b/service/userService.go index 49a29de..be797c4 100644 --- a/service/userService.go +++ b/service/userService.go @@ -141,7 +141,7 @@ func UpdateUser(user_id int, req proto.UpdateUserInfoReq) (int, error) { func UpdateUserCache(id int) { key := "user_info_" + strconv.Itoa(id) if worker.IsContainKey(key) { - user := GetUserByID(id) + user := dao.FindUserByID2(id) userJson, err := json.Marshal(user) if err != nil { fmt.Println("get user info , json marshal error:", err)