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