Explorar el Código

add reverse:for v1.6.9 小公排

tags/v1.6.9
huangjiajun hace 2 años
padre
commit
b806cd5117
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. +4
    -2
      rule/small_public_platoon_relate_commission.go

+ 4
- 2
rule/small_public_platoon_relate_commission.go Ver fichero

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


Cargando…
Cancelar
Guardar