Quellcode durchsuchen

add 一个圈圈

master
DengBiao vor 11 Monaten
Ursprung
Commit
5f64c23f0f
1 geänderte Dateien mit 13 neuen und 1 gelöschten Zeilen
  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 Datei anzeigen

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

Laden…
Abbrechen
Speichern