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