Преглед на файлове

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


Зареждане…
Отказ
Запис