diff --git a/rule/egg_energy/give_activty_coin.go b/rule/egg_energy/give_activty_coin.go index 5df2f75..f02283b 100644 --- a/rule/egg_energy/give_activty_coin.go +++ b/rule/egg_energy/give_activty_coin.go @@ -149,6 +149,9 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm strin var rewardFather []struct { Uid int64 `json:"uid"` //用户id RewardValue float64 `json:"reward_value"` //奖励值 + StartAt string `json:"start_at"` + EndAt string `json:"end_at"` + SignId int64 `json:"sign_id"` } var fatherUids []string @@ -195,9 +198,15 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm strin rewardFather = append(rewardFather, struct { Uid int64 `json:"uid"` //用户id RewardValue float64 `json:"reward_value"` //奖励值 + StartAt string `json:"start_at"` + EndAt string `json:"end_at"` + SignId int64 `json:"sign_id"` }{ Uid: egg_system_rules.StrToInt64(fatherUid), RewardValue: fatherRewardValue, + StartAt: m.StartTime, + EndAt: m.EndTime, + SignId: m.Id, }) } } @@ -279,9 +288,9 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm strin AssistanceUid: uid, Uid: vv.Uid, AssistanceValue: vv.RewardValue, - SignStart: fatherSign.StartTime, - SignEnd: fatherSign.EndTime, - SignId: fatherSign.Id, + SignStart: vv.StartAt, + SignEnd: vv.EndAt, + SignId: vv.SignId, }, md2.EggEnergyTeamAssistance) } }