From 869e675df3ed281c29e0e21265c38c7c35f60233 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 10 Oct 2022 11:17:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?update=20=E5=8C=BA=E5=9D=97=E6=98=9F?= =?UTF-8?q?=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/block_star_chain_settlement.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rule/block_star_chain_settlement.go b/rule/block_star_chain_settlement.go index 5bff7a0..0044e5d 100644 --- a/rule/block_star_chain_settlement.go +++ b/rule/block_star_chain_settlement.go @@ -414,7 +414,7 @@ func statisticsAndDistributeCoinForOperationCenter(session *xorm.Session, mid st return err, unassignedTotalCoinValue } if totalUser > 0 { - singleValue := publishCoinValue.Div(decimal.NewFromInt(totalUser)) // 得到的区块币 + originalSingleValue := publishCoinValue.Div(decimal.NewFromInt(totalUser)) // 得到的区块币 var userIds []int for _, item := range userList { @@ -427,6 +427,7 @@ func statisticsAndDistributeCoinForOperationCenter(session *xorm.Session, mid st return err, unassignedTotalCoinValue } for _, item := range userVirtualAmounts { + singleValue := originalSingleValue needDestroyContribution := singleValue.Mul(platformGuidePriceForCoinValue) //需销毁贡献值 coinAmount, err := svc.GetUserCoinAmount(session, mid, chain.Coin2, item.Uid) //获取此时用户的"静态贡献值" if err != nil { @@ -505,7 +506,7 @@ func statisticsAndDistributeCoinForOther(session *xorm.Session, mid string, publ return err, unassignedTotalCoinValue } if totalUser > 0 { - singleValue := publishCoinValue.Div(decimal.NewFromInt(totalUser)) // 得到的区块币 + originalSingleValue := publishCoinValue.Div(decimal.NewFromInt(totalUser)) // 得到的区块币 var userIds []int for _, item := range userList { @@ -519,6 +520,7 @@ func statisticsAndDistributeCoinForOther(session *xorm.Session, mid string, publ } for _, item := range userVirtualAmounts { + singleValue := originalSingleValue needDestroyContribution := singleValue.Mul(platformGuidePriceForCoinValue) //需销毁贡献值 coinAmount, err := svc.GetUserCoinAmount(session, mid, chain.Coin2, item.Uid) //获取此时用户的"静态贡献值" if err != nil { From 9cacd134f9e60dae79a5e6486263a9c544c4616c Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 10 Oct 2022 11:36:42 +0800 Subject: [PATCH 2/2] =?UTF-8?q?update=20=E5=8C=BA=E5=9D=97=E6=98=9F?= =?UTF-8?q?=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- md/block_star_chain.go | 1 + 1 file changed, 1 insertion(+) diff --git a/md/block_star_chain.go b/md/block_star_chain.go index a89aef4..1d421a9 100644 --- a/md/block_star_chain.go +++ b/md/block_star_chain.go @@ -33,6 +33,7 @@ const ( OfflineConsumeRewardTitleForMerchantVirtualCoinFlow = "区块星链-线下消费打赏(商家)" GroupLotteryAndDestroyTitleForUserVirtualCoinFlow = "区块星链-自营拼团抽奖销毁" GroupLotteryAndDirectPushRewardTitleForUserVirtualCoinFlow = "区块星链-自营拼团抽奖奖励(直推)" + GroupLotteryAndGroupRewardTitleForUserVirtualCoinFlow = "区块星链-自营拼团抽奖奖励(团队)" GroupSpellRewardTitleForUserVirtualCoinFlow = "自营拼团拼中奖励" )