From b61146471b8a99f07aa9df95871c58e6f4e3dbb0 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Thu, 11 Aug 2022 20:17:12 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=85=B1=E5=AF=8C=E5=88=B6=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/small_public_platoon_relate_commission.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rule/small_public_platoon_relate_commission.go b/rule/small_public_platoon_relate_commission.go index af9dfac..8f44544 100644 --- a/rule/small_public_platoon_relate_commission.go +++ b/rule/small_public_platoon_relate_commission.go @@ -260,7 +260,7 @@ func smallPublicPlatoon(engine *xorm.Engine, uid, recommendUid int, userPublicPl var fatherUidStr string if m1.FatherUid == "" { //TODO::顶级 - fatherUidStr = zhios_order_relate_utils.IntToStr(m1.Position) + fatherUidStr = zhios_order_relate_utils.IntToStr(m1.Uid) } else { fatherUids := strings.Split(m1.FatherUid, "-") if len(fatherUids) > userPublicPlatoonSetting.SeveralRows { @@ -278,6 +278,16 @@ func smallPublicPlatoon(engine *xorm.Engine, uid, recommendUid int, userPublicPl now := time.Now() userSmallPublicPlatoonRelation.Uid = uid userSmallPublicPlatoonRelation.FatherUid = fatherUidStr + + userSmallPublicPlatoonRelation.FatherUid1 = standardSmallPublicPlatoonRelation.FatherUid1 + userSmallPublicPlatoonRelation.FatherUid2 = standardSmallPublicPlatoonRelation.FatherUid1 + userSmallPublicPlatoonRelation.FatherUid3 = standardSmallPublicPlatoonRelation.FatherUid2 + userSmallPublicPlatoonRelation.FatherUid4 = standardSmallPublicPlatoonRelation.FatherUid3 + userSmallPublicPlatoonRelation.FatherUid5 = standardSmallPublicPlatoonRelation.FatherUid4 + userSmallPublicPlatoonRelation.FatherUid6 = standardSmallPublicPlatoonRelation.FatherUid5 + userSmallPublicPlatoonRelation.FatherUid7 = standardSmallPublicPlatoonRelation.FatherUid6 + userSmallPublicPlatoonRelation.FatherUid8 = standardSmallPublicPlatoonRelation.FatherUid7 + userSmallPublicPlatoonRelation.FatherUid9 = standardSmallPublicPlatoonRelation.FatherUid8 userSmallPublicPlatoonRelation.Pid1 = standardSmallPublicPlatoonRelation.Pid1 userSmallPublicPlatoonRelation.Pid2 = standardSmallPublicPlatoonRelation.Pid2 userSmallPublicPlatoonRelation.Pid3 = standardSmallPublicPlatoonRelation.Pid3