From b30b70dc5296a9f61cfa5d828141189d5586e50d Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 23 Dec 2024 15:54:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=82=80=E8=AF=B7=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hdl/member_center/hdl_user_management.go | 4 +--- app/md/member_center/md_user_management.go | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/hdl/member_center/hdl_user_management.go b/app/hdl/member_center/hdl_user_management.go index be0fee9..900ffb9 100644 --- a/app/hdl/member_center/hdl_user_management.go +++ b/app/hdl/member_center/hdl_user_management.go @@ -121,6 +121,7 @@ func UserManagementGetUserList(c *gin.Context) { Phone: user.Phone, IsRealName: user.IsRealName, InviteCode: user.SystemInviteCode, + CustomInviteCode: user.CustomInviteCode, ParentID: user.ParentUid, ParentInviteCode: user.ParentSystemInviteCode, ParentPhone: user.ParentPhone, @@ -131,9 +132,6 @@ func UserManagementGetUserList(c *gin.Context) { State: user.State, LastLoginAt: user.UpdateAt, } - if user.CustomInviteCode != "" { - list[i].InviteCode = user.CustomInviteCode - } if user.ParentCustomInviteCode != "" { list[i].ParentInviteCode = user.ParentCustomInviteCode } diff --git a/app/md/member_center/md_user_management.go b/app/md/member_center/md_user_management.go index e950ffc..74200bb 100644 --- a/app/md/member_center/md_user_management.go +++ b/app/md/member_center/md_user_management.go @@ -58,6 +58,7 @@ type UserManagementGetUserListNode struct { IsRealName int `json:"is_real_name"` // 是否实名 0.未实名,1.已实名 LevelName string `json:"level_name"` // 会员等级 InviteCode string `json:"invite_code" example:"会员邀请码"` + CustomInviteCode string `json:"custom_invite_code"` ParentID int64 `json:"parent_id"` // 推荐人 ID ParentInviteCode string `json:"parent_invite_code" example:"推荐人邀请码"` ParentPhone string `json:"parent_phone" example:"推荐人手机号"`