From e3935437fc84fee7909dc1fea30cc63218dc6a50 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Sun, 22 Dec 2024 01:21:40 +0800 Subject: [PATCH] update --- rule/egg_energy/give_activty_coin.go | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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) } }