From c7be07d22a55caf28cedadcdc2938b986f5fa251 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Sun, 6 Oct 2024 16:41:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E5=8A=9F=E8=83=BD?= 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 1aa6bae..d090431 100644 --- a/service/userService.go +++ b/service/userService.go @@ -48,7 +48,7 @@ func UpdateUser(user_id int, req proto.UpdateUserInfoReq) (int, error) { dao.UpdateUserByID2(user_id, req) return user_id, nil } else if cur_user.Role == "admin" { - dao.UpdateUserByID2(user_id, req) + dao.UpdateUserByID2(req.ID, req) return req.ID, nil } else { return 0, nil