From 057422051a7f18a0de697ccb67372d946affa77d Mon Sep 17 00:00:00 2001 From: jjxu <428192774@qq.com> Date: Sun, 9 Apr 2023 12:33:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/internal/dao/artistInfo_user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/internal/dao/artistInfo_user.go b/cmd/internal/dao/artistInfo_user.go index 3df7b27..b16b7b4 100644 --- a/cmd/internal/dao/artistInfo_user.go +++ b/cmd/internal/dao/artistInfo_user.go @@ -35,7 +35,7 @@ func RegisterUser(req *artistInfoUser.RegisterUserRequest) (rep *artistInfoUser. zap.L().Debug(fmt.Sprintf("RegisterUser--user: %+v", user)) if err = db.DB.Create(&user).Error; err != nil { zap.L().Error("register user err", zap.Error(err)) - err = errors.New(m.ERROR_SELECT) + err = errors.New(m.CREATE_ERROR) return nil, err } return From cdfbd81ed9045a579e1cd50af4da256dd2148ff4 Mon Sep 17 00:00:00 2001 From: jjxu <428192774@qq.com> Date: Tue, 11 Apr 2023 16:42:26 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=94=BB=E5=AE=B6id=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/internal/dao/artistInfo_user.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/internal/dao/artistInfo_user.go b/cmd/internal/dao/artistInfo_user.go index b16b7b4..f19343e 100644 --- a/cmd/internal/dao/artistInfo_user.go +++ b/cmd/internal/dao/artistInfo_user.go @@ -816,6 +816,9 @@ func UpdateUserData(req *artistInfoUser.UserInfo) (rep *artistInfoUser.CommonNoP if req.WxAccount != "" { preUpdateData.WxAccount = req.WxAccount } + if req.MgmtArtistId != 0 { + preUpdateData.MgmtArtistId = req.MgmtArtistId + } tx := db.DB.Begin() err = tx.Save(&preUpdateData).Error