浏览代码

update 区块星链

tags/v3.2.4
DengBiao 2 年前
父节点
当前提交
8152853164
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      rule/block_star_chain_settlement.go

+ 4
- 4
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",


正在加载...
取消
保存