From bf46f423c1e160e3b18eeb1b63eccd5ba951bfee Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Fri, 24 Nov 2023 16:47:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/home-user-auth/internal/logic/userinfosetlogic.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/home-user-auth/internal/logic/userinfosetlogic.go b/server/home-user-auth/internal/logic/userinfosetlogic.go index 777e50b3..60903759 100644 --- a/server/home-user-auth/internal/logic/userinfosetlogic.go +++ b/server/home-user-auth/internal/logic/userinfosetlogic.go @@ -75,15 +75,15 @@ func (l *UserInfoSetLogic) UserInfoSet(req *types.UserInfoSetReq, userinfo *auth BuilderDB := fsUserInfoModel.BuilderDB(l.ctx, nil).Model(&gmodel.FsUserInfo{}) BuilderDB1 := fsUserInfoModel.BuilderDB(l.ctx, nil).Model(&gmodel.FsUserInfo{}) if req.Module == "merchant_category" { - BuilderDB1.Where("module = ?", "profile") + BuilderDB1 = BuilderDB1.Where("module = ?", "profile") } else { - BuilderDB1.Where("module = ?", req.Module) + BuilderDB1 = BuilderDB1.Where("module = ?", req.Module) } //.Where("user_id=?", userId).Where("guest_id=?", guestId) if userId > 0 { - BuilderDB1.Where("user_id=?", userId) + BuilderDB1 = BuilderDB1.Where("user_id=?", userId) } else { - BuilderDB1.Where("guest_id=?", guestId) + BuilderDB1 = BuilderDB1.Where("guest_id=?", guestId) } userInfo, err = fsUserInfoModel.FindOne(BuilderDB1, nil) if err != nil {