This commit is contained in:
chaosBreaking
2019-09-29 23:37:40 +08:00
parent 7deaee1eb6
commit 762bac76bd

View File

@@ -50,7 +50,7 @@ const doReward = async (user, fund) => {
// 1.对于充值的fundList的每一项按照2%进行发放累加到asset.vic添加action类型为1 // 1.对于充值的fundList的每一项按照2%进行发放累加到asset.vic添加action类型为1
// 2.对于社团成员进行人头数目按照10vic/人进行奖励累加到asset.vic添加action类型为2 // 2.对于社团成员进行人头数目按照10vic/人进行奖励累加到asset.vic添加action类型为2
if (!user || !fund) return 0; if (!user || !fund) return 0;
const allInviteReward = (+user.group.length || 0) * 10; const allInviteReward = (+user.group.length || 0) * 5;
const rewardMine = await awardMine(user, fund); const rewardMine = await awardMine(user, fund);
const rewardInvite = awardInvite(user, fund, allInviteReward); const rewardInvite = awardInvite(user, fund, allInviteReward);
const reward = rewardMine + rewardInvite; const reward = rewardMine + rewardInvite;