Browse Source

update 共富制度

tags/v1.7.6
DengBiao 2 years ago
parent
commit
b61146471b
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      rule/small_public_platoon_relate_commission.go

+ 11
- 1
rule/small_public_platoon_relate_commission.go View File

@@ -260,7 +260,7 @@ func smallPublicPlatoon(engine *xorm.Engine, uid, recommendUid int, userPublicPl
var fatherUidStr string
if m1.FatherUid == "" {
//TODO::顶级
fatherUidStr = zhios_order_relate_utils.IntToStr(m1.Position)
fatherUidStr = zhios_order_relate_utils.IntToStr(m1.Uid)
} else {
fatherUids := strings.Split(m1.FatherUid, "-")
if len(fatherUids) > userPublicPlatoonSetting.SeveralRows {
@@ -278,6 +278,16 @@ func smallPublicPlatoon(engine *xorm.Engine, uid, recommendUid int, userPublicPl
now := time.Now()
userSmallPublicPlatoonRelation.Uid = uid
userSmallPublicPlatoonRelation.FatherUid = fatherUidStr

userSmallPublicPlatoonRelation.FatherUid1 = standardSmallPublicPlatoonRelation.FatherUid1
userSmallPublicPlatoonRelation.FatherUid2 = standardSmallPublicPlatoonRelation.FatherUid1
userSmallPublicPlatoonRelation.FatherUid3 = standardSmallPublicPlatoonRelation.FatherUid2
userSmallPublicPlatoonRelation.FatherUid4 = standardSmallPublicPlatoonRelation.FatherUid3
userSmallPublicPlatoonRelation.FatherUid5 = standardSmallPublicPlatoonRelation.FatherUid4
userSmallPublicPlatoonRelation.FatherUid6 = standardSmallPublicPlatoonRelation.FatherUid5
userSmallPublicPlatoonRelation.FatherUid7 = standardSmallPublicPlatoonRelation.FatherUid6
userSmallPublicPlatoonRelation.FatherUid8 = standardSmallPublicPlatoonRelation.FatherUid7
userSmallPublicPlatoonRelation.FatherUid9 = standardSmallPublicPlatoonRelation.FatherUid8
userSmallPublicPlatoonRelation.Pid1 = standardSmallPublicPlatoonRelation.Pid1
userSmallPublicPlatoonRelation.Pid2 = standardSmallPublicPlatoonRelation.Pid2
userSmallPublicPlatoonRelation.Pid3 = standardSmallPublicPlatoonRelation.Pid3


Loading…
Cancel
Save