huangjiajun 2 yıl önce
ebeveyn
işleme
dcbf26b0cb
2 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  1. +1
    -0
      md/block_star_chain.go
  2. +4
    -2
      rule/block_star_chain_settlement.go

+ 1
- 0
md/block_star_chain.go Dosyayı Görüntüle

@@ -33,6 +33,7 @@ const (
OfflineConsumeRewardTitleForMerchantVirtualCoinFlow = "区块星链-线下消费打赏(商家)"
GroupLotteryAndDestroyTitleForUserVirtualCoinFlow = "区块星链-自营拼团抽奖销毁"
GroupLotteryAndDirectPushRewardTitleForUserVirtualCoinFlow = "区块星链-自营拼团抽奖奖励(直推)"
GroupLotteryAndGroupRewardTitleForUserVirtualCoinFlow = "区块星链-自营拼团抽奖奖励(团队)"
GroupSpellRewardTitleForUserVirtualCoinFlow = "自营拼团拼中奖励"
)



+ 4
- 2
rule/block_star_chain_settlement.go Dosyayı Görüntüle

@@ -414,7 +414,7 @@ func statisticsAndDistributeCoinForOperationCenter(session *xorm.Session, mid st
return err, unassignedTotalCoinValue
}
if totalUser > 0 {
singleValue := publishCoinValue.Div(decimal.NewFromInt(totalUser)) // 得到的区块币
originalSingleValue := publishCoinValue.Div(decimal.NewFromInt(totalUser)) // 得到的区块币

var userIds []int
for _, item := range userList {
@@ -427,6 +427,7 @@ func statisticsAndDistributeCoinForOperationCenter(session *xorm.Session, mid st
return err, unassignedTotalCoinValue
}
for _, item := range userVirtualAmounts {
singleValue := originalSingleValue
needDestroyContribution := singleValue.Mul(platformGuidePriceForCoinValue) //需销毁贡献值
coinAmount, err := svc.GetUserCoinAmount(session, mid, chain.Coin2, item.Uid) //获取此时用户的"静态贡献值"
if err != nil {
@@ -505,7 +506,7 @@ func statisticsAndDistributeCoinForOther(session *xorm.Session, mid string, publ
return err, unassignedTotalCoinValue
}
if totalUser > 0 {
singleValue := publishCoinValue.Div(decimal.NewFromInt(totalUser)) // 得到的区块币
originalSingleValue := publishCoinValue.Div(decimal.NewFromInt(totalUser)) // 得到的区块币

var userIds []int
for _, item := range userList {
@@ -519,6 +520,7 @@ func statisticsAndDistributeCoinForOther(session *xorm.Session, mid string, publ
}

for _, item := range userVirtualAmounts {
singleValue := originalSingleValue
needDestroyContribution := singleValue.Mul(platformGuidePriceForCoinValue) //需销毁贡献值
coinAmount, err := svc.GetUserCoinAmount(session, mid, chain.Coin2, item.Uid) //获取此时用户的"静态贡献值"
if err != nil {


Yükleniyor…
İptal
Kaydet