瀏覽代碼

update 区块星链

tags/v3.0.4
DengBiao 2 年之前
父節點
當前提交
9124309804
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      rule/block_star_chain_settlement.go

+ 2
- 2
rule/block_star_chain_settlement.go 查看文件

@@ -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…
取消
儲存