DengBiao pirms 1 gada
vecāks
revīzija
311ed3d0a5
1 mainītis faili ar 8 papildinājumiem un 3 dzēšanām
  1. +8
    -3
      rule/public_platoon_relate_commission.go

+ 8
- 3
rule/public_platoon_relate_commission.go Parādīt failu

@@ -477,9 +477,14 @@ func JudgeUserBelowLevel(engine *xorm.Engine, uid int) (level int, err error) {
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++
}
return


Notiek ielāde…
Atcelt
Saglabāt