瀏覽代碼

add reverse:for v1.6.9 小公排

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

+ 4
- 2
rule/small_public_platoon_relate_commission.go 查看文件

@@ -243,7 +243,9 @@ func smallPublicPlatoon(engine *xorm.Engine, uid, recommendUid int, userPublicPl

//唯一标识符(父级id-uid-等级-位置)
var uniqueIdentifier = zhios_order_relate_utils.IntToStr(pid) + "-" + zhios_order_relate_utils.IntToStr(uid) + "-" + zhios_order_relate_utils.IntToStr(int(level)) + "-" + zhios_order_relate_utils.IntToStr(position)

if userPublicPlatoonSetting.SettleDay == 0 {
userPublicPlatoonSetting.SettleDay = 30
}
// 3、插入 user_public_platoon_relation 记录
now := time.Now()
userSmallPublicPlatoonRelation.Uid = uid
@@ -253,7 +255,7 @@ func smallPublicPlatoon(engine *xorm.Engine, uid, recommendUid int, userPublicPl
userSmallPublicPlatoonRelation.Level = int(level)
userSmallPublicPlatoonRelation.Position = position
userSmallPublicPlatoonRelation.UniqueIdentifier = uniqueIdentifier
userSmallPublicPlatoonRelation.WaitForSettlementDate = now.AddDate(0, 0, 30).Format("2006-01-02")
userSmallPublicPlatoonRelation.WaitForSettlementDate = now.AddDate(0, 0, userPublicPlatoonSetting.SettleDay).Format("2006-01-02")
userSmallPublicPlatoonRelation.JoinAt = now
userSmallPublicPlatoonRelation.CreateAt = now
userSmallPublicPlatoonRelation.UpdateAt = now


Loading…
取消
儲存