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:"推荐人手机号"`