Browse Source

add 一个圈圈

master
DengBiao 11 months ago
parent
commit
5f64c23f0f
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      rule/one_circles/one_circles_public_platoon_user_relation_commission.go

rule/one_circles_public_platoon_user_relation_commission.go → rule/one_circles/one_circles_public_platoon_user_relation_commission.go View File

@@ -1,4 +1,4 @@
package rule
package one_circles

import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/db"
@@ -659,3 +659,15 @@ func OneCirclesSmallFindWaitForDealUsers(engine *xorm.Engine, page, pageSize int
}
return
}

//递归查找等级
func smallMakeSearchLevel(position *int, rows float64, times *float64) (level int) {
difference := *position - int(math.Pow(rows, *times))
*times++
if difference <= 0 {
return int(*times)
} else {
position = &difference
return smallMakeSearchLevel(position, rows, times)
}
}

Loading…
Cancel
Save