|
@@ -149,6 +149,9 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm strin |
|
|
var rewardFather []struct { |
|
|
var rewardFather []struct { |
|
|
Uid int64 `json:"uid"` //用户id |
|
|
Uid int64 `json:"uid"` //用户id |
|
|
RewardValue float64 `json:"reward_value"` //奖励值 |
|
|
RewardValue float64 `json:"reward_value"` //奖励值 |
|
|
|
|
|
StartAt string `json:"start_at"` |
|
|
|
|
|
EndAt string `json:"end_at"` |
|
|
|
|
|
SignId int64 `json:"sign_id"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var fatherUids []string |
|
|
var fatherUids []string |
|
@@ -195,9 +198,15 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm strin |
|
|
rewardFather = append(rewardFather, struct { |
|
|
rewardFather = append(rewardFather, struct { |
|
|
Uid int64 `json:"uid"` //用户id |
|
|
Uid int64 `json:"uid"` //用户id |
|
|
RewardValue float64 `json:"reward_value"` //奖励值 |
|
|
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), |
|
|
Uid: egg_system_rules.StrToInt64(fatherUid), |
|
|
RewardValue: fatherRewardValue, |
|
|
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, |
|
|
AssistanceUid: uid, |
|
|
Uid: vv.Uid, |
|
|
Uid: vv.Uid, |
|
|
AssistanceValue: vv.RewardValue, |
|
|
AssistanceValue: vv.RewardValue, |
|
|
SignStart: fatherSign.StartTime, |
|
|
|
|
|
SignEnd: fatherSign.EndTime, |
|
|
|
|
|
SignId: fatherSign.Id, |
|
|
|
|
|
|
|
|
SignStart: vv.StartAt, |
|
|
|
|
|
SignEnd: vv.EndAt, |
|
|
|
|
|
SignId: vv.SignId, |
|
|
}, md2.EggEnergyTeamAssistance) |
|
|
}, md2.EggEnergyTeamAssistance) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|