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