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)