From 0875293baf611d2fc0d80c5698233d1fb7ebf8fa Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Sat, 3 Feb 2024 15:19:38 +0800 Subject: [PATCH] update --- ...ne_circles_public_platoon_give_activty_coin.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/rule/one_circles/one_circles_public_platoon_give_activty_coin.go b/rule/one_circles/one_circles_public_platoon_give_activty_coin.go index fb75210..51c925f 100644 --- a/rule/one_circles/one_circles_public_platoon_give_activty_coin.go +++ b/rule/one_circles/one_circles_public_platoon_give_activty_coin.go @@ -67,7 +67,20 @@ func SettlementPublicGiveActivityCoin(engine *xorm.Engine, masterId string, uid if oneCirclesPublicPlatoonUserRelation != nil { fatherUids = strings.Split(oneCirclesPublicPlatoonUserRelation.FatherUid, "-") } - for k, fatherUid := range fatherUids { + for k, id := range fatherUids { + tmpOneCirclesPublicPlatoonUserRelation, err11 := db.OneCirclesPublicPlatoonUserRelationGetOneByParams(engine, map[string]interface{}{ + "key": "id", + "value": id, + }) + if err11 != nil { + return err11 + } + if tmpOneCirclesPublicPlatoonUserRelation.Uid <= 0 { + //待填充位 + continue + } + + fatherUid := zhios_order_relate_utils.IntToStr(tmpOneCirclesPublicPlatoonUserRelation.Uid) fatherReward := rewardSystemMap[k+1] //判断是否满足奖励条件 userCount, _, err2 := db.SumUserRelateByParentUid(engine, fatherUid)