From 6b606dc5256760475b9f171587aa4f7f2b18597f Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 15 Sep 2023 18:08:39 +0800 Subject: [PATCH] update --- svc/small_public_platoon_relate_commission.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/svc/small_public_platoon_relate_commission.go b/svc/small_public_platoon_relate_commission.go index d00028a..b8f21bb 100644 --- a/svc/small_public_platoon_relate_commission.go +++ b/svc/small_public_platoon_relate_commission.go @@ -201,6 +201,9 @@ func CalcSmallPublicPlatoonRelateLaXinReward(engine *xorm.Engine, masterId strin } for k, v := range fatherPositions { + if k >= len(detail) { + continue + } if m.IsUseRewardLimit == 1 { //查询对应用户的等级 tmpUser, err3 := db.UserFindByID(engine, v)