Browse Source

update

master
DengBiao 1 year ago
parent
commit
311ed3d0a5
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      rule/public_platoon_relate_commission.go

+ 8
- 3
rule/public_platoon_relate_commission.go View File

@@ -477,9 +477,14 @@ func JudgeUserBelowLevel(engine *xorm.Engine, uid int) (level int, err error) {
return return
} }


level = son.Level - 1
levelEndPosition := getLevelForLastPosition(son.Level, userPublicPlatoonSetting.SeveralTimes)
if son.Position == levelEndPosition {
level = son.Level - m.Level
var list []model.UserPublicPlatoonRelation
if err = engine.Where("father_uid", son.FatherUid).
Find(&list); err != nil {
return
}

if len(list) == userPublicPlatoonSetting.SeveralTimes {
level++ level++
} }
return return


Loading…
Cancel
Save