From 30b5069f9f0cbf0a474647150e1cfd8e0761beb5 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Thu, 10 Apr 2025 15:24:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=9B=B4=E6=96=B0=E5=90=8E=E6=9C=AA=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=BC=93=E5=AD=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/userService.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)