From fa0781c353a59fd4c4d30e6351f025fa8d84dade Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Mon, 21 Oct 2024 13:02:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9D=83=E9=99=90=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=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, 2 insertions(+) diff --git a/service/userService.go b/service/userService.go index d090431..39dd27a 100644 --- a/service/userService.go +++ b/service/userService.go @@ -1,6 +1,7 @@ package service import ( + "fmt" "regexp" "videoplayer/dao" "videoplayer/proto" @@ -44,6 +45,7 @@ func GetUserByNameLike(name string) []proto.User { func UpdateUser(user_id int, req proto.UpdateUserInfoReq) (int, error) { cur_user := dao.FindUserByID2(user_id) + fmt.Println("cur_user:", cur_user, "req:", req) if user_id == req.ID { dao.UpdateUserByID2(user_id, req) return user_id, nil