Browse Source

update

master
DengBiao 10 months ago
parent
commit
0875293baf
1 changed files with 14 additions and 1 deletions
  1. +14
    -1
      rule/one_circles/one_circles_public_platoon_give_activty_coin.go

+ 14
- 1
rule/one_circles/one_circles_public_platoon_give_activty_coin.go View File

@@ -67,7 +67,20 @@ func SettlementPublicGiveActivityCoin(engine *xorm.Engine, masterId string, uid
if oneCirclesPublicPlatoonUserRelation != nil { if oneCirclesPublicPlatoonUserRelation != nil {
fatherUids = strings.Split(oneCirclesPublicPlatoonUserRelation.FatherUid, "-") 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] fatherReward := rewardSystemMap[k+1]
//判断是否满足奖励条件 //判断是否满足奖励条件
userCount, _, err2 := db.SumUserRelateByParentUid(engine, fatherUid) userCount, _, err2 := db.SumUserRelateByParentUid(engine, fatherUid)


Loading…
Cancel
Save