Ver a proveniência

update

master
DengBiao há 8 meses
ascendente
cometimento
a89391f494
1 ficheiros alterados com 10 adições e 0 eliminações
  1. +10
    -0
      rule/public_platoon_double_network_relate_commission.go

+ 10
- 0
rule/public_platoon_double_network_relate_commission.go Ver ficheiro

@@ -342,6 +342,16 @@ func randSeedIntDoubleNetwork(start, end int64, nums int, uniqueMap map[int64]bo
return res
}

/*
*EstimateUserPosition 预估用户位置
*total 排名总数
*level 预估排名层级
*levelRank 用户当前层级排名
*rank 用户总排名
*previousRow 上一层级
*diffValue 距离上一层级差值
*/

func EstimateUserPosition(engine *xorm.Engine, uid int) (total, level, levelRank, rank, previousRow int, diffValue string, err error) {
//1、查找 `user_public_platoon_setting` 基础设置
userPublicPlatoonDoubleNetworkSetting, err := db.UserPublicPlatoonDoubleNetworkSettingGetOneByParams(engine, map[string]interface{}{


Carregando…
Cancelar
Guardar