Browse Source

update 共富制度

tags/v1.1.5
DengBiao 2 years ago
parent
commit
8e12660b8c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      rule/public_platoon_relate_commission.go

+ 1
- 1
rule/public_platoon_relate_commission.go View File

@@ -133,7 +133,7 @@ func AddPublicPlatoonRelateCommission(engine *xorm.Engine, masterId string, AddP
TODO 相关公式:
1: 每个等级的起始值(1+5^0+5^1+5^2+...+5^x-2), 每个等级的结束值(`5^0+5^1+5^2+...+5^x-1)
2: 根据position查找pid { (position-1)/5 }
3: 根据position查找等级level {position-5^0-5^1-5^2-...-5^x 是否 <0 ? = x+1 }
3: 根据position查找等级level {position-5^0-5^1-5^2-...-5^x 是否 <0 ? => x+1 }
*/
func publicPlatoon(engine *xorm.Engine, uid, recommendUid int, userPublicPlatoonSetting model.UserPublicPlatoonSetting) (model.UserPublicPlatoonRelation, error) {
var userPublicPlatoonRelation model.UserPublicPlatoonRelation


Loading…
Cancel
Save