fix: job
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user