Browse Source

update 区块星链

tags/v3.2.4
DengBiao 2 years ago
parent
commit
8152853164
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      rule/block_star_chain_settlement.go

+ 4
- 4
rule/block_star_chain_settlement.go View File

@@ -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",


Loading…
Cancel
Save