瀏覽代碼

update

master
DengBiao 1 年之前
父節點
當前提交
311ed3d0a5
共有 1 個文件被更改,包括 8 次插入3 次删除
  1. +8
    -3
      rule/public_platoon_relate_commission.go

+ 8
- 3
rule/public_platoon_relate_commission.go 查看文件

@@ -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


Loading…
取消
儲存