huangjiajun 2 년 전
부모
커밋
dcbf26b0cb
2개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -0
      md/block_star_chain.go
  2. +4
    -2
      rule/block_star_chain_settlement.go

+ 1
- 0
md/block_star_chain.go 파일 보기

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



+ 4
- 2
rule/block_star_chain_settlement.go 파일 보기

@@ -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 {


불러오는 중...
취소
저장