浏览代码

update

master
dengbiao 6 个月前
父节点
当前提交
57157fb769
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. +6
    -6
      rule/one_circles/one_circles_deal_available_green_energy_points.go

+ 6
- 6
rule/one_circles/one_circles_deal_available_green_energy_points.go 查看文件

@@ -224,12 +224,12 @@ func DealAvailableGreenEnergyCoin(session *xorm.Session, kind int, amount, amoun
starLevelDividends, _ := decimal.NewFromString(destructionSetting.StarLevelDividends) //星级分红百分比
afterStarLevelDividendsValues := starLevelDividendsNums.Add(amountFeeValue.Mul(starLevelDividends.Div(decimalRate))).RoundFloor(8).String()

var afterCommunityDividendsValues = chain.CommunityDividends
if chain.CommunityDividends != "" {
communityDividendsNums, _ := decimal.NewFromString(chain.CommunityDividends)
communityDividends, _ := decimal.NewFromString(destructionSetting.CommunityDividends) //社区分红百分比
afterCommunityDividendsValues = communityDividendsNums.Add(amountFeeValue.Mul(communityDividends.Div(decimalRate))).RoundFloor(8).String()
}
//var afterCommunityDividendsValues = chain.CommunityDividends
//if chain.CommunityDividends != "" {
communityDividendsNums, _ := decimal.NewFromString(chain.CommunityDividends)
communityDividends, _ := decimal.NewFromString(destructionSetting.CommunityDividends) //社区分红百分比
afterCommunityDividendsValues := communityDividendsNums.Add(amountFeeValue.Mul(communityDividends.Div(decimalRate))).RoundFloor(8).String()
//}

destructionQuantityNums, _ := decimal.NewFromString(chain.DestructionQuantityNums)
destructionQuantity, _ := decimal.NewFromString(destructionSetting.DestructionQuantity) //销毁百分比


正在加载...
取消
保存