From 1afa1273f0203c0800ad43f7bf9d9e68b37a8f03 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 9 Oct 2023 17:38:12 +0800 Subject: [PATCH] update --- app/customer/hdl/hdl_login.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/customer/hdl/hdl_login.go b/app/customer/hdl/hdl_login.go index 3c20ed5..f49cbb6 100644 --- a/app/customer/hdl/hdl_login.go +++ b/app/customer/hdl/hdl_login.go @@ -206,6 +206,8 @@ func Register(c *gin.Context) { } } else { user.UserId = req.UserId + user.OpenId = req.OpenId + user.UnionId = req.UnionId if req.Nickname != "" { user.Nickname = req.Nickname } @@ -213,7 +215,7 @@ func Register(c *gin.Context) { user.Avatar = req.Avatar } user.UpdateAt = now.Format("2006-01-02 15:04:05") - updateAffected, err1 := userDb.UpdateUser(user, "user_id", "nickname", "avatar", "update_at") + updateAffected, err1 := userDb.UpdateUser(user, "user_id", "nickname", "avatar", "update_at", "union_id", "open_id") if err1 != nil { e.OutErr(c, e.ERR_DB_ORM, err1) return