瀏覽代碼

update 共富制度

tags/v1.7.6
DengBiao 2 年之前
父節點
當前提交
b61146471b
共有 1 個文件被更改,包括 11 次插入1 次删除
  1. +11
    -1
      rule/small_public_platoon_relate_commission.go

+ 11
- 1
rule/small_public_platoon_relate_commission.go 查看文件

@@ -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…
取消
儲存