From 6a8bb5ec5f7392d7980180abc3de38e2f95d14ee Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 12 Dec 2024 21:40:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=A7=8B=E4=BA=BA=E4=B8=8D=E7=94=A8?= =?UTF-8?q?=E5=BC=B9=E5=87=BA=E7=BB=91=E5=AE=9A=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/hdl_member_center.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/hdl/hdl_member_center.go b/app/hdl/hdl_member_center.go index c6df992..6f0fd73 100644 --- a/app/hdl/hdl_member_center.go +++ b/app/hdl/hdl_member_center.go @@ -187,6 +187,12 @@ func MemberCenterGetBasic(c *gin.Context) { if user.ParentUid > 0 { resp.IsBindExtend = "1" } + //创始人不用弹出绑定邀请码 + publicPlatoonBasicDb := implement.NewPublicPlatoonBasicSettingDb(db.Db) + publicPlatoonBasic, _ := publicPlatoonBasicDb.PublicPlatoonBasicSettingGetOne() + if publicPlatoonBasic != nil && int(user.Id) == publicPlatoonBasic.OriginatorUid { + resp.IsBindExtend = "1" + } resp.IsRealName = svc.CheckRealName(user.Id) e.OutSuc(c, resp, nil) return