Browse Source

update 区块星链

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

+ 2
- 2
rule/block_star_chain_settlement.go View File

@@ -217,7 +217,7 @@ func statisticsAndDistributeCoinForStatic(session *xorm.Session, userIds []int,
sumStaticValue := decimal.NewFromFloat(sumStatic)

//2、查询出所有拥有静态贡献值的用户
err = session.Table("user_virtual_amount").In("uid", userIds).Where("coin_id =?", chain.Coin2).And("amount > 0").Find(&userVirtualAmounts)
err = session.Table("user_virtual_amount").NotIn("uid", userIds).Where("coin_id =?", chain.Coin2).And("amount > 0").Find(&userVirtualAmounts)
if err != nil {
return err, unassignedTotalCoinValue
}
@@ -296,7 +296,7 @@ func statisticsAndDistributeCoinForDynamic(session *xorm.Session, userIds []int,
sumStaticValue := decimal.NewFromFloat(sumStatic)

//2、查询出所有拥有静态贡献值的用户
err = session.Table("user_virtual_amount").In("uid", userIds).Where("coin_id =?", chain.Coin2).And("amount > 0").Find(&userVirtualAmounts)
err = session.Table("user_virtual_amount").NotIn("uid", userIds).Where("coin_id =?", chain.Coin2).And("amount > 0").Find(&userVirtualAmounts)
if err != nil {
return err, unassignedTotalCoinValue
}


Loading…
Cancel
Save