From 8152853164ea45242fd37c5cf36012da304d319d Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 14 Sep 2022 11:46:19 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=8C=BA=E5=9D=97=E6=98=9F=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/block_star_chain_settlement.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rule/block_star_chain_settlement.go b/rule/block_star_chain_settlement.go index 395bed9..dcc4d79 100644 --- a/rule/block_star_chain_settlement.go +++ b/rule/block_star_chain_settlement.go @@ -241,7 +241,7 @@ func statisticsAndDistributeCoinForStatic(session *xorm.Session, userIds []int, getCoin = getCoin.Sub(tempCoin) needDestroyContribution = coinAmountValue } - unassignedTotalCoin.Add(getCoin) + unassignedTotalCoin = unassignedTotalCoin.Add(getCoin) //3.2给相应用户加上分配到的虚拟币 err = DealUserCoin(session, md.DealUserCoinReq{ @@ -327,7 +327,7 @@ func statisticsAndDistributeCoinForDynamic(session *xorm.Session, userIds []int, getCoin = getCoin.Sub(tempCoin) needDestroyContribution = coinAmountValue } - unassignedTotalCoin.Add(getCoin) + unassignedTotalCoin = unassignedTotalCoin.Add(getCoin) //3.2给相应用户加上分配到的虚拟币 err = DealUserCoin(session, md.DealUserCoinReq{ @@ -413,7 +413,7 @@ func statisticsAndDistributeCoinForOperationCenter(session *xorm.Session, mid st singleValue = singleValue.Sub(tempCoin) needDestroyContribution = coinAmountValue } - totalCoin.Add(singleValue) + totalCoin = totalCoin.Add(singleValue) //3.2给相应用户加上分配到的虚拟币 err = DealUserCoin(session, md.DealUserCoinReq{ Kind: "add", @@ -505,7 +505,7 @@ func statisticsAndDistributeCoinForOther(session *xorm.Session, mid string, publ singleValue = singleValue.Sub(tempCoin) needDestroyContribution = coinAmountValue } - totalCoin.Add(singleValue) + totalCoin = totalCoin.Add(singleValue) //3.2给相应用户加上分配到的虚拟币 err = DealUserCoin(session, md.DealUserCoinReq{ Kind: "add",